In this tutorial, we will examine how to secure Apache with Let’s Encrypt for the Ubuntu 16.04 operating system. We will first examine an overview of Let’s Encrypt, certificate authorities, and then dive into a step by step guide to install & configure Let’s Encrypt on your Ubuntu 16.04 VPS servers and the review how to automatically renew SSL certificates.
Let’s Encrypt is a free, automated, and open Certificate Authority (CA), that provides the ability to secure a website. Let’s Encrypt also provides automation and tools to reduce setup and maintenance challenges needed to secure web servers using HTTPS (SSL/TLS).
Let’s Encrypt is free, easy to create, configure, and renew certificates on web servers (like Apache).
Most administrators who host web servers have a goal of attracting new visitors along with retaining end-user attention – as this often translates into profits or a growing website community. People hosting web servers also want to reduce maintenance and cost.
End users, on the other hand, are motivated to visit websites that are safe and do not compromise their security.
To satisfy both administrators and end users, a Certificate Authority is used to validate the authenticity of the web server’s domain name.
Traditional CA (Certificate Authorities) solutions like Verisign required domain owners to pay a fee to use the CA services, this is no longer required when using Let’s Encrypt. The Let’s encrypt service is funded by sponsors and donors.
First, confirm that port 80 is open and working by going to the following URL,
http://:80 (you should see your edited webpage)
Next, confirm that the web server SSL port 443 is also open and working by going to the following,
https://:443
NOTE: When the server resolves in a browser using port 443 you will get a “Not Encrypted” or “Not Secure” error in the address bar. That’s ok.
Caution: Do not proceed to the following steps if you are not able to successfully reach your Apache server on both ports 80 and 443. If the server does not resolve to either port contact your network admins to ensure that both ports are configured to allow web traffic.
Once we know Apache is resolving correctly, we can move on to the next section of this tutorial.
It is highly recommended to automate the renewal of your certificate to avoid http traffic interruption due to an expired SSL certificate. For Example; on the Apache server you can create a cron job to renew the certificate every month on the 10th at 6:04 am using cron by typing “sudo crontab -e” and at the bottom add the following line (below) and save/exit.
4 6 10 * * certbot –apache –force-renewal renew –quiet
EOF
The post How to Secure Apache with Let’s Encrypt Ubuntu 16.04 appeared first on Low End Box.
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…
Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…
Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…
Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…
One of my favourite authors, Douglas Adams, once said that “we are stuck with technology…