Easy guide for installing SSL in apache2
Although this is very easy process, but everyone described this process in very complex way. I have a tough time. This is my attempt to simplify all those complexities.
Just Purchase the certificate from SimpleDNS.
Submit the private key, DNSimple can do this for you. Allow them to generate private key for you. This is
After few days you will receive an email from COMODO Group. They will provide you certificate. This is
server.crt. This certificate is at very end of the email. See this
mod_sslapache extension if it is not enabled. (Skip this step now. If at last if it doesnt work then do this)
Copy both of this files,
server.crtand add it in some folder.
Now, configure the apache site specific
configfile. So, it will be look something like this if you’re using
<VirtualHost *:443> ServerName test.example.com #!!! Be sure to point DocumentRoot to 'public'! RailsEnv staging DocumentRoot /home/ubuntu/staging/public <Directory /home/ubuntu/staging/public> #This relaxes Apache security settings. AllowOverride all Allow from all Require all granted #MultiViews must be turned off. Options -MultiViews </Directory> SSLEngine on SSLCertificateFile /home/ubuntu/staging/certs/server.crt SSLCertificateKeyFile /home/ubuntu/staging/certs/server.key
CNAMErecord in DNS . It will look something like this
CNAME test.example.com 3600 example.com
Wait for an hour and then restart the server. It will suppose to work. Let me know if you have some problem.