How to Install an SSL in Apache OpenSSL?

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)
how to install ssl in apache openssl

Here Are the Quick Steps to Install an SSL Certificate in Apache OpenSSL

Once your SSL certificate gets issued, you’ll require installing it on your server to see visible HTTPS URLs. Those who have Apache OpenSSL, go through the below steps and find out how you can install your issued SSL certificate.

Steps to Install Your SSL Certificate in Apache OpenSSL

Here are quick steps to install Comodo Positive SSL certificate in a server and show secure HTTPS URLs to prevent users from getting a “Not Secure” warning message.

Locate the Config File of Apache & Edit

Find out two main files of Apache that are usually named as:

  • apache2.conf
  • httpd.conf

Usually, these two files are found in /etc/apache2/ or /etc/httpd.

Note: The SSL config file may be within another config file of the <VirtualHost> block. On Linux distribution, you can search for an SSL conf file with the command:

grep -i -r “SSLCertificateFile” /etc/httpd/

Configuring File & Enter Commands

Once you find the file, you’ll require to configure the httpd.conf file using below mentioned commands on Virtual Host for enabling SSL successfully:


    DocumentRoot /var/www/html2


        SSLEngine on

        SSLCertificateFile /path/to/ domain_example_name.crt

        SSLCertificateKeyFile /path/to/your_private.key

        SSLCertificateChainFile /path/to/cabundle.crt    </VirtualHost>


If you are looking to load your website using http and https, you’ll need to create one more virtual host for http, which you can do by simply using the code mentioned earlier. Once the above steps are completed, it’s recommended that you test the newly updated config file by using the below command:


And if it’s successful, then restart your Apache server using commands:

apachectl stop

apachectl start

You may require entering a password when generating your RSA key. Likewise, simply re-generate the RSA key file if you don’t want to enter any password.

Once the steps mentioned above are completed, you should see HTTPS URLs, as you’ve successfully installed your SSL certificate. Simply go through the website in your web browser and browse https://www.domain-example.tld and view the installed SSL certificate or site information. Likewise, we also recommend verifying it using the SSL Checker tool to ensure that Multi-Domain SSL certificate is installed correctly. Nonetheless, before you begin SSL installation, it’s recommended that you ensure you’ve below mentioned certificates:

Server Certificate

The server certificate is received from the CA (Certificate Authority) side specifically for your website. You may receive it at your registered email address. If not, you can even download it through your Account Dashboard and go through your SSL order.

Intermediate Certificate

An intermediate certificate is a file that allows devices connecting with your server to know about the CA who issued an SSL certificate. Likewise, there might be multiple certificates if you’ve got a ZIP certificate folder. And, in such folder, Intermediate certificates are provided. Likewise, folders are known as CA Bundle.

Private Key

The private key should be kept securely or within your possession on your server. Likewise, if you’ve Microsoft IIS, the private key may not be visible easily to you, but the server may have it.

Note: It’s recommended that the files mentioned above be kept securely on the server directory where all the key and certificate files are stored.

Buy Email Signing or S/MIME Certificates at Cheapest Price
Janki Mehta

Janki Mehta

Janki Mehta is a Cyber-Security Enthusiast who constantly updates herself with new advancements in the Web/Cyber Security niche. Along with theoretical knowledge, she also implements her practical expertise in day-to-day tasks and helps others to protect themselves from threats.

Buy Cheap Wildcard SSL