The Let's Encrypt Client: Apt-Get Update Sudo Apt-Get Install Certbot Apt-Get Install Python-Certbot-Nginx
The Let's Encrypt Client: Apt-Get Update Sudo Apt-Get Install Certbot Apt-Get Install Python-Certbot-Nginx
com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
$ apt-get update
$ sudo apt-get install certbot
$ apt-get install python-certbot-nginx
With Ubuntu 18.04 and later, substitute the Python 3 version:
$ apt-get update
$ sudo apt-get install certbot
$ apt-get install python3-certbot-nginx
2. Set Up NGINX
certbot can automatically configure NGINX for SSL/TLS. It looks for and modifies
the server block in your NGINX configuration that contains a server_name directive with the
domain name you’re requesting a certificate for. In our example, the domain
is www.example.com.
1. Assuming you’re starting with a fresh NGINX install, use a text editor to create a file
in the /etc/nginx/conf.d directory named domain- name.conf (so in our
example, www.example.com.conf).
2. Specify your domain name (and variants, if any) with the server_name directive:
3. server {
4. listen 80 default_server;
5. listen [::]:80 default_server;
6. root /var/www/html;
7. server_name example.com www.example.com;
}
8. Save the file, then run this command to verify the syntax of your configuration and
restart NGINX:
------------------------------------------------------------------------------
-------
IMPORTANT NOTES:
# RSA certificate
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by
Certbot
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by
Certbot
To try out Let’s Encrypt with NGINX Plus yourself, start your free 30-day trial today
or contact us to discuss your use cases.