Complete the command to install Certbot on Ubuntu.
sudo apt-get install [1]The package certbot is used to obtain Let's Encrypt certificates.
Complete the command to obtain a certificate for example.com using Certbot with nginx plugin.
sudo certbot --[1] nginx -d example.comThe run command tells Certbot to obtain and install the certificate automatically using the nginx plugin.
Fix the error in the nginx server block to enable SSL by completing the directive.
listen 443 ssl [1];
The http2 directive enables HTTP/2 protocol on the SSL port 443.
Fill both blanks to configure Certbot to automatically renew certificates and reload nginx after renewal.
0 3 * * * certbot renew --[1]-hook "systemctl [2] nginx"
The post-hook runs after renewal, and reload reloads nginx to apply new certificates without downtime.
Fill all three blanks to create a secure nginx server block snippet for SSL with Let's Encrypt certificates.
server {
listen 443 ssl [1];
server_name [2];
ssl_certificate /etc/letsencrypt/live/[3]/fullchain.pem;
}Enable http2 on port 443, set server_name to your domain (here 'mydomain.com'), and use the same domain folder for the certificate path.