Creating and Installing Apache Self Signed Certificate

Posted on 22-11-2017 by Nadir Latif


To generate an Apache self signed certificate, we need to issue the command:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mysitename.key -out mysitename.crt

This will generate a SSL certificate called mysitename.crt and a private key file called mysitename.key. The path to these files can be added to the Apache virtual host configuration.

Leave a Comment: