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 [2026/03/11 10:00] – [Python] Sean Rhoneservers:windows:nginx:lets_encrypt [2026/04/15 09:48] (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.3-amd64.exe''+  * Last tested: ''python-3.14.4-amd64.exe'' ((2026/03/11: ''python-3.15.0a7-amd64.exe'' needed a Visual Studio build package for ''cffi'', which [[https://github.com/python-cffi/cffi/issues/23#issuecomment-1845861410|doesn't seem available pre-release]]; installing pre-selected VC build tools didn't work/likely needs more components))
  
   * 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 30: Line 30:
  
   * :!: Set ''email''   * :!: Set ''email''
-  * :!: TODO: Add chat to DNS 
  
   MKDIR "%SystemDrive%\www\certbot"   MKDIR "%SystemDrive%\www\certbot"
  
-  "notepad.exe" "%SystemDrive%\www\certbot\cli-custom.ini"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\certbot\cli-custom.ini"
  
 <code> <code>
Line 59: Line 58:
 elliptic-curve = "secp384r1" elliptic-curve = "secp384r1"
  
-domains = "realmofespionage.xyz, wiki.realmofespionage.xyz, media.realmofespionage.xyz, blog.realmofespionage.xyz, social.realmofespionage.xyz, forums.realmofespionage.xyz, status.realmofespionage.xyz, chat.realmofespionage.xyz, files.realmofespionage.xyz, test.realmofespionage.xyz"+domains = "realmofespionage.xyz, wiki.realmofespionage.xyz, media.realmofespionage.xyz, blog.realmofespionage.xyz, social.realmofespionage.xyz, forums.realmofespionage.xyz, status.realmofespionage.xyz, files.realmofespionage.xyz, test.realmofespionage.xyz"
  
 # End</code> # End</code>
  
-====== Obtain Certs Test ======+====== Obtain 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"+  * :!: If it passes the dry run, remove the ''--dry-run'' argument and re-run 
 + 
 +  "%SystemRoot%\System32\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" --dry-run   "%LocalAppData%\Programs\Python\Python314\Scripts\certbot.exe" "certonly" --config "%SystemDrive%\www\certbot\cli-custom.ini" --dry-run
  
-  "netsh.exe" advfirewall firewall delete rule name="Certbot (Standalone)"+  "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Certbot (Standalone)"
  
 ====== Scripts ====== ====== Scripts ======
Line 75: Line 76:
   MKDIR "%SystemDrive%\www\scripts\certbot"   MKDIR "%SystemDrive%\www\scripts\certbot"
  
-  "explorer.exe" "%SystemDrive%\www\scripts\certbot"+  "%SystemRoot%\explorer.exe" "%SystemDrive%\www\scripts\certbot"
  
 ===== Renewal ===== ===== Renewal =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\certbot\Renewal.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\certbot\Renewal.bat"
  
 <code> <code>
Line 92: Line 93:
 TITLE Certbot Renewal TITLE Certbot Renewal
  
-"netsh.exe" advfirewall firewall add rule name="Certbot (Standalone)" dir="in" action="allow" program="%LocalAppData%\Programs\Python\Python314\python.exe" protocol="tcp" localport="80"+"%SystemRoot%\System32\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 "%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)"+"%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="Certbot (Standalone)"
  
 CALL "%SystemDrive%\www\scripts\nginx\Start.bat" CALL "%SystemDrive%\www\scripts\nginx\Start.bat"
Line 104: Line 105:
 ===== Update ===== ===== Update =====
  
-  "notepad.exe" "%SystemDrive%\www\scripts\certbot\Update.bat"+  "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\certbot\Update.bat"
  
 <code> <code>
Line 126: Line 127:
   * Weekly (Sunday) ''07:00:00 AM''   * Weekly (Sunday) ''07:00:00 AM''
  
-  SCHTASKS /Create /SC "WEEKLY" /D "SUN" /TN "Certbot Renewal" /TR "%SystemDrive%\www\scripts\certbot\Renewal.bat" /ST "07:00" /F+  "%SystemRoot%\System32\schtasks.exe" /Create /SC "WEEKLY" /D "SUN" /TN "Certbot Renewal" /TR "%SystemDrive%\www\scripts\certbot\Renewal.bat" /ST "07:00" /F 
 + 
 +====== TODO ====== 
 + 
 +===== ACME Clients ===== 
 + 
 +  * https://letsencrypt.org/getting-started/#selecting-and-operating-an-acme-client-yourself 
 +  * https://letsencrypt.org/docs/client-options/#clients-windows-/-iis 
 +  * https://eff-certbot.readthedocs.io/en/stable/install.html#alternative-2-pip 
 +  * https://certifytheweb.com/ 
 +  * https://simple-acme.com/
  
/var/www/wiki/data/attic/servers/windows/nginx/lets_encrypt.1773237616.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