HTTPS is a secure communications channel that is used to exchange information between a client computer and a server. It uses Secure Sockets Layer (SSL). A SSL certificate is a way to encrypt a site’s information and create a more secure connection.
We need to do the following steps to setup a secure web server- apache using SSL
- Install apache2 web server
sudo apt-get install apache2
- The next step is to enable SSL on the droplet.
sudo a2enmod ssl
- Restarting Apache.
sudo service apache2 restart
- We need to create a new directory where we will store the server key and certificate
sudo mkdir /etc/apache2/ssl
- Create a self-signed certificate : We nee to specify how long the certificate should remain valid by changing the 365 to the number of days we prefer. As it stands this certificate will expire after one year.
sudo openssl req -x509 -nodes -days 365 -newkey…
View original post 162 more words