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:18] chifekssl [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 45: Line 45:
  
 <code>sudo certbot --nginx</code> <code>sudo certbot --nginx</code>
-Or, just get a certificate+==== 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. 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> <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.1611505088.txt.gz · Last modified: 2023/09/14 06:06 (external edit)