We earn commission when you buy through affiliate links.
This does not influence our reviews or recommendations.Learn more.
Lets secure Apache with an SSL/TLS certificate.
Once the certificate is implemented, the configured domain/IP will be accessible over HTTPS.
Lets get it started.
On a high level, we will do the following.
Install Apache with SSL from Source
To configure SSL, Apache HTTP must be compiled with mod_ssl.
Ill use CentOS 7 VM fromDigital Oceanto demonstrate this.
Note: you cancheck herefor the latest version.
As usual, ensure no errors from the above commands.
This concludes, you haveinstalledan Apache web server with SSL support.
Lets Encrypt is a Linux Foundation Collaboration Project who offers aFREE SSL/TLS certificate.
You will get three files that we will use next to configure the Apache webserver.
Transfer the downloaded file to the Web Server.
We will need them shortly.
We will usehttpd-ssl.conffile to configure the certificate details.
There are the following you gotta ensure it exists the right parameters.
Next, you should probably configure the ServerName directive.
Once done, attempt to access your domain with HTTPS.
And as it’s possible for you to see, Chandan.io isaccessible over httpswith the certificate I configured.