Certbot: Setup Let's Encrypt automatically
Notes on installing the missing python2-certbot-nginx plugin and getting a free Let's Encrypt cert via the nginx authenticator.
1 min read
root@localhost ~# certbot certonly --nginx -d localhost.com
Saving debug log to /var/log/letsencrypt/letsencrypt.logCould not choose appropriate plugin: The requested nginx plugin does not appear to be installedThe requested nginx plugin does not appear to be installedI need to install python2-certbot-nginx package first.
Re-run the command.
root@localhost ~# certbot certonly --nginx -d localhost.comSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator nginx, Installer nginxStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgRequesting a certificate for localhost.comPerforming the following challenges:http-01 challenge for localhost.comWaiting for verification...Cleaning up challenges
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/localhost.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/localhost.com/privkey.pem Your certificate will expire on 2021-09-07. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-leProblem solved.