servers:bsd:nginx:lets_encrypt
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
servers:bsd:nginx:lets_encrypt [2024/11/30 11:32] – created Sean Rhone | servers:bsd:nginx:lets_encrypt [2025/05/17 17:13] (current) – Sean Rhone | ||
---|---|---|---|
Line 8: | Line 8: | ||
* [[bsd: | * [[bsd: | ||
- | * [[servers: | + | * [[servers: |
====== Dependencies ====== | ====== Dependencies ====== | ||
- | su -l | + | su - |
pkg install ' | pkg install ' | ||
Line 20: | Line 20: | ||
* :!: Be sure to change the email address | * :!: Be sure to change the email address | ||
- | su -l | + | su - |
ee '/ | ee '/ | ||
Line 48: | Line 48: | ||
hsts = true | hsts = true | ||
uir = true | uir = true | ||
- | staple-ocsp = true | + | staple-ocsp = false |
- | pre-hook = service ' | + | domains = realmofespionage.xyz, |
- | post-hook = service ' | + | |
- | + | ||
- | domains = realmofespionage.xyz, | + | |
# End</ | # End</ | ||
Line 61: | Line 58: | ||
* :!: If it passes the dry run, remove the dry-run argument and re-run ((the dry run will likely fail the nginx restart step since the certs don't actually exist yet)) | * :!: If it passes the dry run, remove the dry-run argument and re-run ((the dry run will likely fail the nginx restart step since the certs don't actually exist yet)) | ||
- | su -l | + | su - |
certbot ' | certbot ' | ||
- | ====== Automatic Cert Renewal ====== | + | ===== Temp Commands |
- | * :!: Everything below TODO | + | * TODO: service stop nginx, above no dry-run |
- | ===== Disable Existing | + | ====== Automatic Cert Renewal ====== |
- | **** | + | |
- | + | ||
- | sudo systemctl disable --now ' | + | |
- | + | ||
- | ===== Service ===== | + | |
- | + | ||
- | sudo -e '/ | + | |
- | + | ||
- | < | + | |
- | [Service] | + | |
- | Type=oneshot | + | |
- | ExecStart='/ | + | |
- | ExecStartPost='/ | + | |
- | + | ||
- | # End</ | + | |
- | + | ||
- | ===== Timer ===== | + | |
- | + | ||
- | sudo -e '/ | + | |
- | + | ||
- | < | + | |
- | [Unit] | + | |
- | Description=Let' | + | |
- | After=network-online.target | + | |
- | Wants=network-online.target | + | |
- | + | ||
- | [Timer] | + | |
- | OnCalendar=weekly | + | |
- | Persistent=true | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
- | + | ||
- | # End</ | + | |
/srv/www/wiki/data/attic/servers/bsd/nginx/lets_encrypt.1732984336.txt.gz · Last modified: by Sean Rhone