Setup apache2 with ssl on ubuntu

First of all we should install apache web server and add mod_ssl sudo apt-get install apache2 sudo a2enmod ssl Create folder for storing ssl certificates sudo mkdir /etc/apache2/ssl Now we generate self signed certificate for one year sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/server.key -out /etc/apache2/ssl/server.crt This command will ask you […]