
This article will show you how to install SSL Certificate provided by GoDaddy on your Apache server. Once you verify your domain name and you get to download the zip file for Apache from Godaddy account. Login in to your Apache server.
Upload from filezilla or download directly to the server the zip file.
Once the file is there, uncompress it using zip command as
unzip filename.zip
Once unzip, I recommend you to rename the file because GoDaddy generate random filename.
For example : yourdomain.com.crt and for the bundle file, yourdomain.com.gd_bundle-g2-g1.crt
After that, put that two file in the cert folder. I will recommend to put at /etc/ssl/certs/
So, copy those file like this :
cp yourdomain.com.crt yourdomain.com.gd_bundle-g2-g1.crt /etc/ssl/certs
After that, you have to also located the key that you generate from your server.(normally you have to provide the key to Godaddy to get crt file)
As for me, I put the key file, in the on /etc/ssl/private/yourdomain.com.key
Once you know the location, you modify your apache default-ssl file which is /etc/apache2/sites-available/default-ssl
<VirtualHost *:443> ServerName www.yourdomain.com DocumentRoot /var/www/ CustomLog /var/log/apache/www.yourdomain.com-access.log combined ErrorLog /var/log/apache/www.yourdomain.com-error.log # Example SSL configuration SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5 SSLCertificateFile "/etc/ssl/certs/yourdomain.com.crt" SSLCertificateKeyFile "/etc/ssl/private/domain.com.key" </VirtualHost>
SSLCertificateFile tell where your crt file is located
SSLCertificateKeyFIle tell where your key file is located
Now, you have to activate the site that you just created by doing
a2ensite default-ssl
and then reload apache2
service apache2 reload
Leave a Reply