LetsEncrypt: The Free HTTPS Certificate Generator [product overview]
LetsEncrypt is a free way to set up your websites to use HTTPS, or Hypertext Transfer Protocol Secure. In this article, we will explore the benefits of doing so and how to accomplish it using LetsEncrypt.
LetsEncrypt and HTTPS
Before getting into the specifics of using LetsEncrypt, it’s important to make sure that everyone is on the same page. In this section, we’ll discuss HTTPS, LetsEncrypt and why using HTTPS is important for website owners.
What Is HTTPS?
When you visit a website, you have two options: HTTP and HTTPS. Both of these options offer the same functionality of providing Web-based content to you, but HTTPS offers a bit more in terms of security.
The first differentiator between HTTP and HTTPS is that traffic in HTTPS is encrypted. While an eavesdropper can see the site that you visited, they can’t see any of the data that you send to/from that site. This provides a huge increase in privacy over HTTP, where all information is transmitted in the clear.
The other main advantage of HTTPS is authentication. Anyone can set up a website and may even be able to trick DNS servers (the ones who convert the URL that you type into the website’s IP address) into thinking that they’re the real thing.
HTTPS makes this harder by requiring a website to have a valid SSL certificate. Your computer trusts a set of root Certificate Authorities and will trust any certificate signed by a trusted root CA either directly or indirectly (through a chain of CAs where each CA is authenticated by the previous one in the chain). If you visit a website with a valid SSL certificate, it’s more likely to be the real thing.
What Is LetsEncrypt?
LetsEncrypt is a root Certificate Authority that tries to make it fast and easy for an organization or individual to generate valid SSL certificates for their websites. If a user can prove ownership of a website, LetsEncrypt will allow them to generate a valid certificate for free that are valid for 90 days.
When a certificate nears expiration, LetsEncrypt makes it easy to renew manually or automatically. This benefits both website owners and visitors by providing authentication and encryption for Web traffic.
Why Does My Site Need HTTPS?
The reasons for supporting HTTPS on your website vary based on the type of content provided; however, the simplest reason is user trust. Anti-phishing training has conditioned users to look for the padlock in the address bar, and this is only available with an HTTPS-enabled site.
If your website processes personal information, the use of HTTPS may be mandated under data privacy regulations. User personal information must be protected both at rest and in transit, meaning that any website that collects email addresses (for authentication), phone numbers, credit card information and so on must use encryption, which HTTPS provides and HTTP does not.
Getting Started with LetsEncrypt
LetsEncrypt is designed to make setting up HTTPS fast and free for website owners. In this section, we’ll discuss how to set up LetsEncrypt for the first time and how to configure it to auto-renew certificates.
Setting Up LetsEncrypt
Requesting and installing LetsEncrypt certificates is designed to be fast and easy for users. LetsEncrypt offers two main methods for installation, depending on whether you have shell access to your website. If you use SSH to access your website, you have shell access, but if you commonly use a control panel (cPanel, Plesk, WordPress and so on) for website management, you probably don’t.
With shell access, you can set up a LetsEncrypt certificate completely on your own using the Certbot ACME client. To use this, visit https://certbot.eff.org/ and follow the instructions provided. A huge advantage of this approach is the ability to automatically renew LetsEncrypt certificates when the 90-day deadline is approaching.
Without shell access, you need to rely on your hosting provider to set up your website with HTTPS. LetsEncrypt provides a list of supported hosting providers, who can provide instructions for setting up your site with a LetsEncrypt certificate.
Renewing LetsEncrypt Certificates
The fact that LetsEncrypt certificates are only valid for 90 days can make certificate management a hassle. However, it is possible to set up a site to automatically renew LetsEncrypt certificates to ensure continuous support. This technique requires shell access to the site and uses the Certbot tool from the previous section.
Setting up LetsEncrypt auto-renew assumes that Certbot is installed on the webserver. If this is true, follow these five steps:
- Find the certbot-auto package in the home directory of your website
- Go to home directory: cd ~
- Find the package: ls
- If the package is not there, run the following:
wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto
- Move the package to the letsencrypt directory: sudo mv certbot-auto /etc/letsencrypt
- Open crontab: sudo crontab -e
- Add the following to the end of crontab:
45 2 * * 6 cd /etc/letsencrypt/ && ./certbot-auto renew && /etc/init.d/apache2 restart
- This assumes that your webserver runs apache. If not, modify the last command to restart your webserver
At this point, your autorenew should be completely set up. To test with Apache, use the following commands:
sudo -i cd /etc/letsencrypt/ && ./certbot-auto renew --dry-run && /etc/init.d/apache2 restart
If you’re not using Apache, modify the final command similarly to step 4. If everything checks out, your LetsEncrypt certificates are set up and configured to renew automatically.
Enabling HTTPS with LetsEncrypt
The goal of LetsEncrypt is to make the transition from HTTP to HTTPS as painless as possible for website owners. As users are trained to only trust HTTPS-enabled sites and privacy regulations increase, the need to deploy HTTPS on your websites is growing.
Getting Started, LetsEncrypt
We've encountered a new and totally unexpected error.
Get instant boot camp pricing
A new tab for your requested boot camp pricing will open in 5 seconds. If it doesn't open, click here.