Buy from the highest-rated provider   Buy SSL.com Certificate x

Apache SSL Installation Instructions

  1. Save the primary and intermediate certificates to a folder on the server with the private key.
  2. Open the Apache configuration file in a text editor. Apache configuration files are usually found in /etc/httpd. The main configuration file is usually named httpd.conf. In most cases the <VirtualHost> blocks will be at the bottom of this httpd.conf file. Sometimes you will find the <VirtualHost> blocks in a separate file in a directory like /etc/httpd/vhosts.d/ or /etc/httpd/sites/ or in a file called ssl.conf.
  3. If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a virtual host for each type of connection. Make a copy of the existing non-secure virtual host and change the port from port 80 to 443.
  4. Add the lines in bold below. <VirtualHost 192.168.0.1:443>
    DocumentRoot /var/www/website
    ServerName www.domain.com
    SSLEngine on
    SSLCertificateFile /etc/ssl/crt/primary.crt
    SSLCertificateKeyFile /etc/ssl/crt/private.key
    SSLCertificateChainFile /etc/ssl/crt/intermediate
    .crt
    </VirtualHost> 
  5. Change the names of the files and paths to match your certificate files:
    1. SSLCertificateFile should be your primary certificate file for your domain name.
    2. SSLCertificateKeyFile should be the key file generated when you created the CSR.
    3. SSLCertificateChainFile should be the intermediate certificate file (if any) that was supplied by your certificate authority
  6. Save the changes and exit the text editor.
  7. Restart your Apache web server using one of the following commands: /usr/local/apache/bin/apachectl startssl
    /usr/local/apache/bin/apachectl restart

Useful Apache SSL Links

Apache SSL Installation Videos

Apache SSL Installation Instructions Comments

Comments


Simon(2016-10-23)

Hello,
My name is Simon. I am having a problem after installation of SSL certificate in Apache server. The Certificate is successfully installed. Then I restart using "service httpd restart. But the domain is still not accessible through Internet. I don't know why. If someone can answer I do appreciate.

Thanks
Simon

Antonio(2017-03-03)

https://debian-administrati...

check this simon

Raghunath R A(2018-09-02)

Very helpful. Thanks for sharing.

Anilkumar(2019-01-08)

Hi,

Thanks for the details,

But where do we need to configure the password of the SSL certificate that is generated.

Because once I configure and restart getting below error

AH02578: Init: Unable to read pass phrase

Thanks In Advance

Advertisement • Hide