Installing SSL Certs to Apache
This really is redonculously easy. Proabably the easiest setup to isntall a SSL Certificate too.
- 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
- Once you have your CSR submit it to your CA for your cert.
- 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.
- 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:
- SSLEngine on
- SSLCertificateFile /path/to/your_domain_name.crt
- SSLCertificateKeyFile /path/to/your_private.key
- SSLCertificateChainFile /path/to/DigiCertCA.crt
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.
- Make sure to enable Modd SSL: sudo a2enmod ssl
- Restart Apache Services: sudo service apache2 restart
- You should get an output that the services sucessfully restarted. And you are done.