How to do it...

In this section, we will learn how to create a self-signed certificate to encrypt traffic to our Apache server:

  1. Once our Apache server has been installed, we can check the default web page by visiting the http://localhost link on our browser:

  1. However, when we try to access the same page using HTTPS, we get the following error:

  1. To start using SSL, we have to enable the SSL support module on our Ubuntu server. To do this, we must run the following command:
  1. After enabling the SSL module, restart the Apache server so that ...

Get Practical Linux Security Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.