How to create and configure SSL Certificates with Apache on Redhat/CentOS
In this article we will discuss “How to create and configure SSL Certificates with Apache on Red Hat, CentOS or Use a Self-Signed SSL Certificate with Apache Red Hat, CentOS. These instructions will be helpful for you in generating a common self-signed certificate that can be used to provide SSL service for all name-based hosts on your VPS.
Note: Self-signed certificates will generate warnings in a visitor’s browser, So kindly proceed to “Installing a Commercial SSL Certificate” if it is required to setting up SSL on a domain using a certificate signed by a commercial SSL provider.
1. Getting the required software:
For an SSL encrypted web server you will be required to have a few things. Depending on your installation you may or may not have OpenSSL and mod_ssl,crypto-utils Apache’s interface to OpenSSL. Use yum when you need them.
2. Generate a self-signed certificate
Using OpenSSL, we will produce a self-signed certificate. If it is a production server that you are using then you are probably likely to want a key from a Trusted Certificate Authority, but if using this on a personal site or just for testing purposes then a self-signed certificate is all right. To create the key you will need to be root.
Finding these lines and make changes as given below:
All will be reserved on path with the Key file protected with different 700 permissions.