servers:bsd:nginx:lets_encrypt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:bsd:nginx:lets_encrypt [2024/12/01 00:39] – Sean Rhone | servers:bsd:nginx:lets_encrypt [2025/08/27 22:45] (current) – [Obtain Certs] Sean Rhone | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[bsd: | + | * [[bsd: |
- | * [[servers: | + | * [[servers: |
====== Dependencies ====== | ====== Dependencies ====== | ||
Line 17: | Line 17: | ||
====== Settings ====== | ====== Settings ====== | ||
- | |||
- | * :!: Be sure to change the email address | ||
su - | su - | ||
- | ee '/ | + | |
< | < | ||
Line 48: | Line 46: | ||
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 59: | Line 54: | ||
====== Obtain Certs ====== | ====== Obtain Certs ====== | ||
- | * :!: If it passes the dry run, remove the dry-run argument and re-run | + | * :!: If it passes the dry run, remove the '' |
su - | su - | ||
Line 65: | Line 60: | ||
certbot ' | certbot ' | ||
- | ====== Automatic Cert Renewal ====== | + | ===== Temp Commands |
- | * :!: Everything below TODO | + | ===== Obtain Updated Certs ===== |
- | ===== Disable Existing ===== | + | * TODO: '' |
- | **** | + | su - |
- | | + | |
- | ===== Service ===== | + | certbot ' |
- | | + | service 'nginx' start |
- | < | + | ====== Automatic Cert Renewal ====== |
- | [Service] | + | |
- | Type=oneshot | + | |
- | ExecStart='/ | + | |
- | ExecStartPost='/ | + | |
- | # End</ | + | * TODO |
- | + | ||
- | ===== 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</ | + | |
/usr/local/www/wiki/data/attic/servers/bsd/nginx/lets_encrypt.1733031563.txt.gz · Last modified: by Sean Rhone