Using a Self signed Certificate to Run Apache2 under SSL
The instructions will help you to generate a self signed certificate with to run Apache2 under SSL. Using a Commercial certificate is always a better idea but in Dev. env. or some sort of testing we can use Self Signed certificate. First of All enable SSL for Apache #a2enmod ssl Now create a directory where we will store our keys/(pem,key) for our self signed certificate #mkdir /etc/apache2/certificate Now generate the keys for our self signed certificate, you will be asked about the information which you have to provide #openssl req -new -x509 -days 1095 -nodes -out /etc/apache2/certificate/apache.pem -keyout /etc/apache2/certificate/apache.key Generating a 1024 bit RSA private key ..............++++++ .......................++++++ writing new private key to '/etc/apache2/certificate/apache.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a D