Apache + Apache SSL Installing your SSL Certificate / Web Server Certificate / Secure Server Certificate Firstly when your issuance email arrives it will contain your web server certificate. If you have not already set up a secure virtual host or would like to learn more about SSL, refer to the following link for more information: Note: The examples below use the following naming conventions: "Your Private Key" = "domainname.key"; "Your Web Server Certificate" = "domainname.crt" Test your certificate by using a browser to connect to your server. Use the https protocol directive (e.g. https://your server/) to indicate you wish to use secure HTTP. Note: The padlock icon on your browser will be displayed in the locked position if your certificates are installed correctly and the server is properly configured for SSL.
Copy your web server certificate into a text editor such as notepad and save as yourdomain.crt
http://www.linuxdoc.org/HOWTO/SSL-RedHat-HOWTO.html#toc4"
Note: Copy the entire contents of the certificate from (and including) the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.
SSLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt (or server.crt)
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key (or server.key)
Note that some instances of Apache will store Virtual Host information in a ssl.conf file. If your httpd.conf contains no Virtual Host information then you will need to locate and amend the ssl.conf as above.
By default:
/usr/local/apache/bin/apachectl startssl
or
/usr/local/apache/bin/apachectl restart
Other commands:
/usr/sbin/httpd startssl or restart
/usr/sbin/httpsd startssl or restart
- 0 användare blev hjälpta av detta svar