Config SSL Certification on my Droplet

August 8, 2014 1.5k views

Hello I follow the tutorial to configure my SSL Certification, but when I try to reload my Apache Service it can't be possible, I see the directory of certification and only see a file called ssl-cert-snakeoil.pem but the file ssl-cert-snakeoil.key not exist. How I can create it and reload my apache service well?

1 Answer

Check Step Three of that article. To generate a self-signed cert the following command is used:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
by Etel Sverdlov
This tutorial explains how to create a self-signed SSL certificate, how to add it to your server, and how to configure the SSL file to display the certificate to the world. A SSL certificate is a way to encrypt a site's information and create a more secure connection. Certificate Authorities can issue SSL certificates that verify the server's details while a self-signed certificate has no 3rd party corroboration. This tutorial is written for Apache on an Ubuntu server.
Have another answer? Share your knowledge.