Setting up a self signed SSL certificate with Apache

I’m assuming you have Apache installed. Enable the SSL mod for apache: sudo a2enmod ssl Create a directory for the certificates: sudo mkdir /etc/apache2/ssl Generate the certificate: sudo openssl req -x509 -nodes -days 365000 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt Openssl will ask for some information, make sure you set the FQDN properly, the rest… Continue reading Setting up a self signed SSL certificate with Apache