Installing SSL Certs to Apache

This really is redonculously easy. Proabably the easiest setup to isntall a SSL Certificate too.

  1. Use this tool to generate an OpenSSL command to run on your Apache server to generate the CSR and Private Key: https://www.digicert.com/easy-csr/openssl.htm
  2. Once you have your CSR submit it to your CA for your cert.
  3. Download your cert to your Apache server. Keep in mind the directories you have your certificate fiels and your private key. It will be important.
  4. Go to your site conf file. If you don't have a VirtualHost section for port 443, add it. Then add the below lines to the Port 443 section:

    If you are using the ss.conf file, the VirtualHost block for port 443 already exists. You will just need to comment out the specific lines, and away go you.

  5. Make sure to enable Modd SSL: sudo a2enmod ssl
  6. Restart Apache Services: sudo service apache2 restart
  7. You should get an output that the services sucessfully restarted. And you are done.