Parent Category: Tutorials
Hits: 16642

In this tutorial I'll show you how you can install a GoDaddy SSL certificate.
This example was made with a GoDaddy certificate:
Generate certificate for GoDaddy:
#openssl genrsa -des3 -out 2048
#openssl req -new -key -out
Give to GoDaddy the contain of
Then you'll recive a mail on the administrative contact of the domain mail address.
After that you'll recive from GoDaddy a zip file containing the cert, in our example
If you set up a pass when you've created the cert file and you want to get rid of it here is how you can remove the pass:
#openssl rsa -passin pass:yourpass -in -out
Then place the key and crt file into /etc/pki/tls/cets dir:
#mv /etc/pki/tls/certs/
#mv /etc/pki/tls/certs/
Make sure that nobody other then root can access those files:
#chmod 0600 /etc/pki/tls/certs/
#chmod 0600 /etc/pki/tls/certs/
Configuring apache:
Install mod_ssl for apache:
#yum install mod_ssl
Edit /etc/httpd/conf.d/ssl.conf according to this:
#SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateFile /etc/pki/tls/certs/
#SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SSLCertificateKeyFile /etc/pki/tls/certs/
Add document root wich should contain the dir where your webfiles are stored:
DocumentRoot /virtual/web/sites/shared/
Add Directory wich should contain path to your web files: 
<Directory "/virtual/web/sites/shared/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Then restart the apache:
#/etc/init.d/httpd restart
Next you need to force http request to https. In order to do that create a .htaccess file inside your web dir containing: 
RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
That's it! Goodluck!


We use Hosting and VPS Hosting, from:

We like and trust them.

Good prices, high security.