User Tools

Site Tools


servers:windows:nginx:lets_encrypt

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
servers:windows:nginx:lets_encrypt [2025/11/13 01:43] Sean Rhoneservers:windows:nginx:lets_encrypt [2025/12/14 16:32] (current) – [Python] Sean Rhone
Line 15: Line 15:
  
   * https://www.python.org/downloads/windows/   * https://www.python.org/downloads/windows/
-  * Last tested''python-3.14.0-amd64.exe'' ((2025/11/13: ''python-3.15.0a1-amd64.exe'' needed a VC++ package for ''certbot''))+  * https://www.python.org/ftp/python/3.14.2/python-3.14.2-amd64.exe 
 +  * Last tested: ''python-3.14.2-amd64.exe''
  
   * Install ''pip'' ((nothing else (admin, PATH, etc) is required and can be unchecked))   * Install ''pip'' ((nothing else (admin, PATH, etc) is required and can be unchecked))
Line 32: Line 33:
  
 <code> <code>
-verbose = true +verbose = "true" 
-text = true +text = "true" 
-non-interactive = true +non-interactive = "true" 
-standalone = true +standalone = "true" 
-force-renewal = true +force-renewal = "true" 
-agree-tos = true+agree-tos = "true"
  
 ################################################## ##################################################
Line 43: Line 44:
 ################################################## ##################################################
  
-no-eff-email = true+no-eff-email = "true"
  
-rsa-key-size = 4096 +rsa-key-size = "4096" 
-redirect = true +redirect = "true" 
-hsts = true +hsts = "true" 
-uir = true +uir = "true" 
-staple-ocsp = false+staple-ocsp = "false"
  
-domains = realmofespionage.xyz, blog.realmofespionage.xyz, files.realmofespionage.xyz, forums.realmofespionage.xyz, media.realmofespionage.xyz, wiki.realmofespionage.xyz, social.realmofespionage.xyz, test.realmofespionage.xyz+domains = "realmofespionage.xyz, blog.realmofespionage.xyz, files.realmofespionage.xyz, forums.realmofespionage.xyz, media.realmofespionage.xyz, wiki.realmofespionage.xyz, social.realmofespionage.xyz, test.realmofespionage.xyz"
  
 # End</code> # End</code>
  
 ====== Obtain Certs Test ====== ====== Obtain Certs Test ======
- 
-  * :!: Admin Command Prompt 
  
   "netsh.exe" advfirewall firewall add rule name="Certbot (Standalone)" dir="in" action="allow" program="%LocalAppData%\Programs\Python\Python314\python.exe" protocol="tcp" localport="80"   "netsh.exe" advfirewall firewall add rule name="Certbot (Standalone)" dir="in" action="allow" program="%LocalAppData%\Programs\Python\Python314\python.exe" protocol="tcp" localport="80"
Line 78: Line 77:
 @echo off @echo off
  
-:: Update Certbot 
 CALL "%SystemDrive%\www\scripts\certbot\Update.bat" CALL "%SystemDrive%\www\scripts\certbot\Update.bat"
  
-:: Stop nginx 
 CALL "%SystemDrive%\www\scripts\nginx\Stop.bat" CALL "%SystemDrive%\www\scripts\nginx\Stop.bat"
  
-:: Renew Certs +"netsh.exe" advfirewall firewall add rule name="Certbot (Standalone)" dir="in" action="allow" program="%LocalAppData%\Programs\Python\Python314\python.exe" protocol="tcp" localport="80
-sudo --disable-input "netsh.exe" advfirewall firewall add rule name="Certbot (Standalone)" dir="in" action="allow" program="%LocalAppData%\Programs\Python\Python314\python.exe" protocol="tcp" localport="80"+"%LocalAppData%\Programs\Python\Python314\Scripts\certbot.exe" "certonly" --config "%SystemDrive%\www\certbot\cli-custom.ini" --quiet 
 +"netsh.exe" advfirewall firewall delete rule name="Certbot (Standalone)"
  
-sudo --disable-input "%LocalAppData%\Programs\Python\Python314\Scripts\certbot.exe" "certonly" --config "%SystemDrive%\www\certbot\cli-custom.ini" --quiet 
- 
-sudo --disable-input "netsh.exe" advfirewall firewall delete rule name="Certbot (Standalone)" 
- 
-:: Copy/Update Certs 
-"explorer.exe" "%SystemDrive%\Certbot\archive\realmofespionage.xyz" 
-"explorer.exe" "%SystemDrive%\www\certbot\certs" 
- 
-"notepad.exe" "%SystemDrive%\www\nginx\conf.d\ssl.conf" 
- 
-:: Start nginx 
 CALL "%SystemDrive%\www\scripts\nginx\Start.bat" CALL "%SystemDrive%\www\scripts\nginx\Start.bat"
  
Line 111: Line 98:
 @echo off @echo off
  
-:: Update pip 
 "%LocalAppData%\Programs\Python\Python314\python.exe" -m "pip" install --upgrade "pip" --quiet "%LocalAppData%\Programs\Python\Python314\python.exe" -m "pip" install --upgrade "pip" --quiet
  
-:: Update Certbot 
 "%LocalAppData%\Programs\Python\Python314\Scripts\pip.exe" install --upgrade "certbot" --quiet "%LocalAppData%\Programs\Python\Python314\Scripts\pip.exe" install --upgrade "certbot" --quiet
  
Line 121: Line 106:
   "%SystemDrive%\www\scripts\certbot\Update.bat"   "%SystemDrive%\www\scripts\certbot\Update.bat"
  
-====== Shortcuts ======+====== Task Scheduler ======
  
-===== Desktop =====+****
  
-==== Renewal ====+  taskschd.msc
  
-  "%SystemDrive%\www\scripts\certbot\Renewal.bat"+===== Renewal ===== 
 + 
 +  * Weekly -> Recur every ''1'' weeks on ''Sunday'' 
 +  * ''7:00:00 AM''
  
   Certbot Renewal   Certbot Renewal
 +
 +  "%SystemDrive%\www\scripts\certbot\Renewal.bat"
  
/var/www/wiki/data/attic/servers/windows/nginx/lets_encrypt.1763016211.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki