$ sudo certbot --nginx Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for? We recommend selecting either all domains, or all domains in a VirtualHost/server block. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: jenkins.example.com 2: tool.example.com 3: www.example.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter 'c' to cancel): 1 Requesting a certificate for jenkins.example.com
Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/jenkins.example.com/fullchain.pem Key is saved at: /etc/letsencrypt/live/jenkins.example.com/privkey.pem This certificate expires on 2025-02-14. These files will be updated when the certificate renews.
Deploying certificate Successfully deployed certificate for jenkins.example.com to /etc/nginx/conf.d/jenkins.example.com.conf Congratulations! You have successfully enabled HTTPS on https://jenkins.example.com
NEXT STEPS: - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.