A Complete Guide to Install SSL Certificate on Red Hat Linux Apache Server.
Red Hat Linux is a Linux distribution that offers a reliable and scalable environment to the business world. It supports major hardware and commercial applications as well provide a secure platform to build public and private clouds. To secure Red Hat Linux, SSL certificate is an essential requirement. In this article, we will talk about how to install SSL certificate on Red Hat Linux Apache Server.
Download and Extract Zip File:
You need to download certificate files that you received from SSL certificate provider. It should be a zip folder to be extracted to server/desktop.
Copy All Files in Directory:
Second, open main certificate file with notepad/text editor, copy the content of file including five dashes to both sides of the BEGIN CERTIFICATE and END CERTIFICATE.
The text file should look like:
-----BEGIN CERTIFICATE----- [encoded data] -----END CERTIFICATE-----
Save the file as youdomain.crt and copy this file into server directory where you need to save all certificates. The examples are as below:
For example – /yourdomain/httpd/conf/ssl.crt/
Therefore, for CA bundle, private key and main certificate the path would be as follows:
/yourdomain/httpd/conf/ssl.crt/ - You need to store all the certificates here. /yourdomain/httpd/conf/ssl.key/ - You should store the server’s private keys here. /yourdomain/httpd/conf/ca-bundle/ - You should store all the bundle files by certificate authority here.
Install SSL Certificate:
-
- Open Virtual Host section of the file, you need to add below files:
- Open and copy CA Bundle (PEM file) on directory location.
- Open configfile with notepad/text editor.
- Now, in .configfile, there is SSL section where you need to copy below code:
SSLCACertificateFile /yourdomain/httpd/conf/ssl.crt/ca-chain-pem.txt
- You can see later that SSL section of config will look alike below example:
SSLCertificateFile /yourdomain/httpd/conf/ssl.crt/server.crt SSLCertificateKeyFile /yourdomain/httpd/conf/ssl.key/server.key SSLCACertificateFile / yourdomain /httpd/conf/ssl.crt/ca-chain-pem.txt
- At last, save httpd.config file and restart your Apache server.
Once an SSL certificate installation process has been completed on Red Hat Linux Apache Server, you should use our SSL checker tool to confirm that your certificate is configured correctly.
Related articles: