Live Chat
Same Certs
Cheapest Price Seal
Less Price

How to Install SSL Certificate on Apache with Mod_SSL

install ssl certificate on apache server
After generating Certificate Signing Request (CSR) for Apache, the next step is to install an SSL certificate on Apache. To secure communication over the server, you need to install an SSL certificate properly on the server. In this helpful article, we will reveal about SSL certificate installation process on Apache & Mod_SSL.

Install SSL Certificate on Apache with Mod_SSL

  • You will have a zip file usually sent by the certificate authority, this file contains the main certificate file and root and intermediate certificate files (CA Bundle). Extract these files to the server.
  • First, move all-important files like a private key to ssl.key directory (created with the CSR) that can be found in /etc/ssl/.
  • Now, move certificate file (mydomain.crt) and CA bundle (root and intermediate files) to ssl.crt directory that is also found in /etc/ssl/ directory.
  • Now, open Apache httpd.conf file with text editor, notepad or, notepad++. You will have SSL configuration file with names like httpd-ssl.conf and ssl.conf in In the /etc/apache2/sites-enabled/ directory.

PS. It may happen that the location of the file may differ from each distribution. Look for the lines that begin with Include in Apache Global Configuration File.

  • Go to Apache Configuration File. If you are using Fedora/CentOS/RHEL operating system, you will have below Apache configuration file:
/etc/httpd/conf/httpd.conf
  • If you are using Debian and Debian based operating systems, you will have below Apache configuration file:
/etc/apache2/apache2.conf
  • You will have SSL configuration file with names like httpd-ssl.conf and ssl.conf in the /etc/apache2/sites-enabled/ directory.
  • Browse the VirtualHost section of the file and add the below directives if they are not present.
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourDomainName.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/yourDomainName.ca-bundle ***
  • You can see the below file in Apache 2.x version.
Apache 2.x:
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourDomainName.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/yourDomainName.ca-bundle
  • At last, save your config file and restart the Apache server.

We suggest you check your website using the SSL checker tool, it will help you find SSL errors.

Related Posts:

4.8/5 overall satisfaction rating

Based on 3861 ratings from actual customers

Customer Reviews
"Not a new customer just a new account due to a name change. Love your prices and service. Thanks for everything! Jimmy - Prestacarts Global Commerce"
Jimmy Ray Warren J / TX, United States
"I have to say your tech "Mike" went out of his way to help me setup the CSR for our SSL. I am not a techie, and Mike was extremely helpful and patient with me. You need to hire more support personnel like Mike! Great job Mike!! Thank you for all your help!! Jana"
Jana K
"Been using you guys for several years. Clean built website with a great UI/UX that lets me get to what I need to buy quickly. I couldn't ask for more. Thanks!"
Devin N
5 Star
80%
4 Star
13%
3 Star
3%
2 Star
2%
1 Star
2%