| Welcome Guest! Login |
|
Support
Installing your Certificate on Apache Mod_SSL
Step 1: Copy your certificate to file
You will receive an email from Networking4all with the certificate in the email (yourdomainname.crt). When viewed in a text editor, your certificate will look something like:
-----BEGIN CERTIFICATE-----
MIAGCSqGSIb3DQEHAqCAMIACAQExADALBgkqhkiG9w0BBwGggDCCAmowggHXAhAF
UbM77e50M63v1Z2A/5O5MA0GCSqGSIb3DQEOBAUAMF8xCzAJBgNVBAYTAlVTMSAw
(.......)
E+cFEpf0WForA+eRP6XraWw8rTN8102zGrcJgg4P6XVS4l39+l5aCEGGbauLP5W6
K99c42ku3QrlX2+KeDi+xBG2cEIsdSiXeQS/16S36ITclu4AADEAAAAAAAAA
-----END CERTIFICATE-----
Copy your SSL Certificate into the directory that you will be using to hold your certificates. In this example we will use /home/user/site/ssl/. The private key used in the example will be labeled private.key and the public key will be public.crt.
It is recommended that you make the directory that contains the private key file only readable by root.
Step 2: Configuring the Web server
To activate your SSL Certificate add the following line in the configuration (httpd.conf) in a <VirtualHost> specification.
SSLEngine on SSLCertificateFile /file-location/public.crt (yourdomain-com.crt) SSLCACertificateFile /file-location/intermediates.crt SSLCertificateKeyFile /file-location/private.key
Save your httpd.conf file and restart Apache.
Force a secure https connection
If you want to force a secure https connection for your website or a specific directory on your website you could place the following code in a .htaccess file on your server.
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
SSL Certificates |
Domain names |
Networking4allPO Box 15320 T: 00800 1602-1603 |