windows:servers:nginx:lets_encrypt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows:servers:nginx:lets_encrypt [2024/05/19 19:45] – [Obtain Certs] Sean Rhone | windows:servers:nginx:lets_encrypt [2024/08/13 18:42] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Information ====== | ||
- | |||
- | * Let's Encrypt ((https:// | ||
- | * Certbot ((https:// | ||
- | * [[Information: | ||
- | |||
- | * :!: 20240519: This is experimental and WIP | ||
- | |||
- | ===== Prerequisites ===== | ||
- | |||
- | * [[windows: | ||
- | * [[windows: | ||
- | |||
- | ====== Install ====== | ||
- | |||
- | ===== Python ===== | ||
- | |||
- | * https:// | ||
- | |||
- | * Install '' | ||
- | |||
- | ===== Certbot ===== | ||
- | |||
- | **** | ||
- | |||
- | pip install " | ||
- | |||
- | ====== Settings ====== | ||
- | |||
- | * :!: Be sure to change the email address | ||
- | * :!: Any new domains added need to be added to Namecheap as well | ||
- | * '' | ||
- | |||
- | mkdir " | ||
- | |||
- | < | ||
- | verbose = true | ||
- | text = true | ||
- | non-interactive = true | ||
- | standalone = true | ||
- | force-renewal = true | ||
- | agree-tos = true | ||
- | |||
- | ########## | ||
- | #CHANGEME# | ||
- | ########## | ||
- | |||
- | email = espionage724@x | ||
- | |||
- | ########## | ||
- | #CHANGEME# | ||
- | ########## | ||
- | |||
- | no-eff-email = true | ||
- | |||
- | rsa-key-size = 4096 | ||
- | redirect = true | ||
- | hsts = true | ||
- | uir = true | ||
- | staple-ocsp = true | ||
- | |||
- | #pre-hook = " | ||
- | #post-hook = systemctl start ' | ||
- | |||
- | domains = realmofespionage.xyz, | ||
- | |||
- | # End</ | ||
- | |||
- | ====== Obtain Certs ====== | ||
- | |||
- | * :!: 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)) | ||
- | |||
- | certbot " | ||
- | |||
- | ====== Automatic Cert Renewal ====== | ||
- | |||
- | ===== Disable Existing ===== | ||
- | |||
- | **** | ||
- | |||
- | 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</ | ||
/usr/local/www/wiki/data/attic/windows/servers/nginx/lets_encrypt.1716162317.txt.gz · Last modified: (external edit)