To install the SSL Certificate on Linux servers, need to make sure we have completed with the following steps.
- We need to buy/renew SSL Certificate
- We need to Generate CSR with SHA-2 algorithm
- Need to save the CSR & Private key file on your server
- Need to apply for SSL Certificate
- Need to Submit SSL Certificate
- Need to download and extract all certificate files and install intermediate CA certificate
Step 1: Download & Extract Certificate files
Once we get ssl certificate, need upload your ssl certificates in to your Linux server.
Step 2: Installation of Intermediate CA certificate
- Open the intermediate certificate file by using any text editor and copy all the encrypted data into a new file and save the new file with the crt name(extension of this file must be .crt).
- Need to copy this file in to apache httpd path – /etc/httpd/conf/ssl.crt/intermediatecert.crt
- Need to open CNF file using with any text editor via etc/httpd/conf/httpd.conf location.
- By using virtual host tag, need to add following configuration in the cnf file
SSLCACertificateFile /etc/httpd/conf/ssl.crt/intermediate.crt
Step 3: Install SSL Certificate File
- We need to open the ssl certificate file with text editor and save it with new name as like server-cert.crt
- Need to save ssl certificate file in the following location /etc/httpd/conf/ssl.crt/server-cert.crt
- Need to follow the same way add in your server.key file at /etc/httpd/conf/ssl.key/server.key
And in httpd.cnf file, need to use virtual host tag with directives configuration
SLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
SSLCACertificateFile /etc/httpd/conf/ssl.crt/intermediate.crt
- Save your httpd.cnf file & restart the web server.