Installation of apache self signed certificate

SSL is an essential factor in securing user’s sensitive data on the web. A self-signed certificate is also useful in securing webmail etc. If you have created a self-signed certificate and then, in the next step, you have to configure your Apache virtual host to use the SSL certificate. If you have only one Apache virtual host to secure and you have a ssl.conf file loaded, you can edit that file. Otherwise, you will need to make a copy of the existing non-secure virtual host, paste it below, and change the port from port 80 to 443.

Step to Install Self Sign SSL on Apache

Step: – 1

Open your Apache configuration file in a text editor. Its location may be different, depending upon your operating system and Apache version, but generally you will find it at /etc/httpd/httpd.conf. In windows system, you will find it at

C:\Program Files\Apache\Apache2\conf\httpd.conf

Step – 2
Mostly, you will find the <VirtualHost> blocks in a separate file in a directory like /etc/httpd/vhosts.d/ or /etc/httpd/sites/.  Add the lines in bold below.

<VirtualHost 192.168.0.1:443>

DocumentRoot /var/www/website

ServerName www.domain.com

SSLEngine on

SSLCertificateFile /etc/ssl/crt/primary.crt

SSLCertificateKeyFile /etc/ssl/crt/private.key

SSLCertificateChainFile /etc/ssl/crt/intermediate.crt

</VirtualHost>

Step – 3
Modify the file and path names to match your certificate files. Save the changes and exit the text editor.

Step – 4
Restart your Apache web server using one of the following commands:

/usr/local/apache/bin/apachectl startssl

/usr/local/apache/bin/apachectl restart

Download Site Seal
comodo-trust-seal
SSL Checker

Pin It on Pinterest

Shares
Share This