Skip to content

Files

Latest commit

May 17, 2024
7b1fca0 · May 17, 2024

History

History
53 lines (37 loc) · 3.9 KB

File metadata and controls

53 lines (37 loc) · 3.9 KB
slug title description authors contributors published modified keywords tags license image aliases relations
enabling-https-using-certbot-with-nginx-on-ubuntu
Use Certbot to Enable HTTPS with NGINX on Ubuntu
Learn how to install and use Certbot with NGINX on Ubuntu 20.04, which automates the process adding TLS/SSL to your websites.
Jeff Novotny
Jeff Novotny
2021-02-25
2021-07-01
Certbot
SSL Certificates
HTTPS
Encryption
NGINX
ssl
nginx
ubuntu
ecommerce
SecureWeb.jpg
/guides/how-to-install-certbot-for-nginx-on-ubuntu-20-04/
/quick-answers/websites/certbot/how-to-install-certbot-on-ubuntu-18-04/
/quick-answers/websites/how-to-install-certbot-on-ubuntu-18-04/
/guides/how-to-install-certbot-on-ubuntu-18-04/
platform
key keywords
how-to-use-certbot-with-nginx
distribution
Ubuntu

This guide provides instructions on using the open source Certbot utility with the NGINX web server on Ubuntu 20.04 LTS and 18.04 LTS. Certbot dramatically reduces the effort (and cost) of securing your websites with HTTPS. It works directly with the free Let's Encrypt certificate authority to request (or renew) a certificate, prove ownership of the domain, and install the certificate on NGINX (or other web servers).

Supported distributions: Ubuntu 20.04 (Focal Fossa) and Ubuntu 18.04 (Bionic Beaver). Recent non-LTS releases like Ubuntu 21.10 (Impish Indri), 21.04 (Hirsute Hippo), and 20.10 (Groovy Gorilla) should also be supported. Ubuntu 16.04 (Xenial Xerus) should still be supported, though that LTS release is no longer receiving free security patches or software updates.

Before You Begin

Before continuing with this guide, you need a website accessible over HTTP using your desired domain name. Breaking this down further, the following components are required:

  1. A server running on Ubuntu 20.04 LTS and 18.04 LTS (or another supported distribution) with credentials to a standard user account (belonging to the sudo group) and the ability to access the server throughSSH or Lish. Creating a Compute Instance and Setting Up and Securing a Compute Instance guides for information on deploying and configuring a Linode Compute Instance.

  2. A registered domain name with DNS records pointing to the IPv4 (and optionally IPv6) address of your server. A domain can be obtained through any registrar and can utilize any DNS service, such as Linode's DNS Manager. Review the DNS Records: An Introduction guide for more information on configuring DNS.

  3. The NGINX web server software installed on your server and configured for your domain. You can review the How to Install NGINX on Ubuntu 18.04 LTS guide for information on installing and configuring NGINX.

{{< note >}} This guide is written for a non-root user. Commands that require elevated privileges are prefixed with sudo. If you are not familiar with the sudo command, see the Users and Groups guide. {{< /note >}}

{{% content "understanding-https-tls-certbot-shortguide" %}}

{{% content "configuring-ufw-for-web-traffic-shortguide" %}}

{{% content "installing-snapd-certbot-apt-shortguide" %}}

{{% content "requesting-certificate-nginx-certbot-shortguide" %}}

{{% content "testing-https-certbot-shortguide" %}}

{{% content "renewing-certificate-certbot-shortguide" %}}

{{% content "deleting-certificate-certbot-shortguide" %}}

{{% content "learn-more-certbot-shortguide" %}}