Set up a web server and enable https connection.

Sukanya Anoop

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


Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: