× SSL247 joins forces with Sectigo CA - Find Out More...
Our accreditations and awards:
Cookies
0 items Total $0

Knowledge Base

  

INSTALL ON APACHE

If you are installing an EV SSL Certificate, please follow our Apache EV SSL Certificate Installation Instructions. Otherwise, please follow these instructions to install your SSL certificate on Apache.

 

1. Once you received your SSL certificate by e-mail, please copy and paste it into a text file (with Notepad or Wordpad) and save the file with the .crt extension. (Include the tags -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----).

2. Get your intermediate certificate. Copy and paste the content in a text file with the .crt extension.

If your certificate is in PKCS#12 format, see here how to split it into your SSL certificate and the intermediate certificate.

3. Copy the two files in the directory on your server where you will keep your certificate and key files. Make them readable by root only.

4. Find your Apache config file (it varies from server to server). This file is usually located in /etc/httpd. The file is usually named httpd.conf.

5. Find the <VirtualHost> blocks in httpd.conf. If you need your site to be accessible through both https and http, you need a virtual host for each type of connection. Make a copy of the existing non-secure virtual host and configure it for SSL. If you need your site to be accessed securely only, configure the existing virtual host.

6. Configure the <Virtualhost> block for the SSL-enabled site.

<VirtualHost 192.168.0.1:443>
DocumentRoot /var/www/html2
ServerName www.yourdomain.com
SSLEngine on
SSLCertificateFile /path/to/your_domain_name.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/intermediate_certificate.crt
</VirtualHost>

7. Test your Apache configuration before restarting by typing apachectl configtest.

8. Restart Apache !

apachectl stop
apachectl start

Note: If Apache doesn't start with SSL enabled, try "apachectl startssl" instead of "apachectl start". If it works, we recommend you adjust the apache startup configuration to include SSL support in the regular "apachectl start" command.

Was this information Useful?
Comments

Privacy Policy