How To Create a SSL Certificate on Apache for Ubuntu 14.04

TLS, or transport layer security, and its predecessor SSL, secure sockets layer, are secure protocols created in order to place normal traffic in a protected, encrypted wrapper.

In this guide, i will cover how to create a self-signed SSL certificate for Apache on an Ubuntu 14.04 server, which will allow you to encrypt traffic to your server.

We have to enable SSL

After you have enabled SSL, you’ll have to restart the web server for the change to be recognized

We will make a directory in which ssl will be stored

This is the most important command which will create ssl certificate for you.

When you hit “ENTER”, you will be asked a number of questions

The most important item that is requested is the line that reads “Common Name (e.g. server FQDN or YOUR name)”

Create a virtual host file of the ssl in which configurtion will be placed for ssl

Place the code website and replace the domain-name which you are setting it up for.

Now that we have configured our SSL-enabled virtual host, we need to enable it.

We then need to restart Apache to load our new virtual host file

Test your website with https protocal