To add ssl certificate to the website we need to follow below steps:
To create .key and .csr files to your website execute below command thwen you will get output with two files as sown below
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr
output
example.key
example.csr
After getting .csr file copy the code from .csr file and paste in the website where your planning to purchase ssl certificate and to get ssl certificates for that particular domain.
we need admin based EmailID as Prerequisite to create ssl certificate
admin@domain.com
SSL Certificates will sent to admin mail id,Download those all
vi /etc/httpd/conf.d/example/ssl-example.confServerName example.com ServerAlias www.example.com DocumentRoot /var/www/html/example DirectoryIndex index.html index.php AllowOverride All Order deny,allow Allow from all SSLEngine on #SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 SSLProtocol all -SSLv2 -SSLv3 SSLCertificateFile /etc/ssl/example/example.crt SSLCertificateKeyFile /etc/ssl/example/example.key SSLCACertificateFile /etc/ssl/example/example.ca-bundle CustomLog /var/log/httpd/example.com-access.log combined ErrorLog /var/log/httpd/example.com-error.log