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 [2025/05/16 19:20] – Sean Rhone | servers:bsd:nginx:lets_encrypt [2025/10/30 23:37] (current) – [Prerequisites] Sean Rhone | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | * [[bsd: | + | * [[bsd: |
| - | * [[servers: | + | * [[servers: |
| ====== Dependencies ====== | ====== Dependencies ====== | ||
| Line 18: | Line 18: | ||
| ====== Settings ====== | ====== Settings ====== | ||
| - | * :!: Be sure to change the email address | + | * :!: Set email |
| su - | su - | ||
| - | ee '/ | + | |
| < | < | ||
| Line 32: | Line 32: | ||
| agree-tos = true | agree-tos = true | ||
| - | ########## | + | ###################### |
| - | #CHANGEME# | + | |
| - | ########## | + | |
| email = espionage724@x | email = espionage724@x | ||
| - | + | ############ | |
| - | ########## | + | |
| - | #CHANGEME# | + | |
| - | ########## | + | |
| no-eff-email = true | no-eff-email = true | ||
| Line 48: | Line 42: | ||
| hsts = true | hsts = true | ||
| uir = true | uir = true | ||
| - | staple-ocsp = true | + | staple-ocsp = false |
| - | domains = realmofespionage.xyz, | + | domains = realmofespionage.xyz, |
| # End</ | # End</ | ||
| Line 56: | Line 50: | ||
| ====== 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 62: | Line 56: | ||
| certbot ' | certbot ' | ||
| - | ====== | + | ====== |
| - | * :!: Everything below TODO | + | ===== Renewal ===== |
| - | ===== Disable Existing ===== | + | mkdir -p ~/' |
| - | **** | + | < |
| + | #!/bin/sh | ||
| - | sudo systemctl disable --now 'certbot-renew' | + | service |
| - | ===== Service ===== | + | certbot ' |
| - | sudo -e '/ | + | service 'nginx' |
| - | + | ||
| - | < | + | |
| - | [Service] | + | |
| - | Type=oneshot | + | |
| - | ExecStart='/ | + | |
| - | ExecStartPost='/ | + | |
| # End</ | # End</ | ||
| - | ===== Timer ===== | + | ~/' |
| - | | + | |
| - | < | + | ssh ' |
| - | [Unit] | + | |
| - | Description=Let's Encrypt Certificate Renewal | + | |
| - | After=network-online.target | + | |
| - | Wants=network-online.target | + | |
| - | [Timer] | + | ====== Automatic Cert Renewal ====== |
| - | OnCalendar=weekly | + | |
| - | Persistent=true | + | |
| - | [Install] | + | * TODO |
| - | WantedBy=multi-user.target | + | |
| - | + | ||
| - | # End</ | + | |
/srv/www/wiki/data/attic/servers/bsd/nginx/lets_encrypt.1747437603.txt.gz · Last modified: by Sean Rhone
