User Tools

Site Tools


ssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ssl [2021/01/24 16:17] chifekssl [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 38: Line 38:
  
 <code>sudo ln -s /snap/bin/certbot /usr/bin/certbot</code> <code>sudo ln -s /snap/bin/certbot /usr/bin/certbot</code>
 +
 +===== 7. Choose how you'd like to run Certbot =====
 +
 +Either get and install your certificates...
 +Run this command to get a certificate and have Certbot edit your Nginx configuration automatically to serve it, turning on HTTPS access in a single step.
 +
 +<code>sudo certbot --nginx</code>
 +==== Or, just get a certificate ====
 +
 +If you're feeling more conservative and would like to make the changes to your Nginx configuration by hand, run this command.
 +
 +<code>sudo certbot certonly --nginx</code>
 +
 +
 +
 +
 +===== 8. Test automatic renewal =====
 +
 +The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:
 +
 +<code>sudo certbot renew --dry-run</code>
 +The command to renew certbot is installed in one of the following locations:
 +<code>
 +/etc/crontab/
 +/etc/cron.*/*
 +systemctl list-timers
 +</code>
 +
 +===== 9.Confirm that Certbot worked =====
 +
 +To confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar.
ssl.1611505020.txt.gz · Last modified: 2023/09/14 06:06 (external edit)