Hi!
OS: Windows 10 Home, I'm admin
Domains: Some Dyndns, e.g. 24.dedyn.io
certbot 1.22.0
I've created some certificates with no problems.
C:\Certbot>certbot certonly ^
--standalone ^
--preferred-challenges http ^
--email me@whatever.de ^
-d 24.dedyn.io
I don't think it matters because --standalone, but ...
Web server nginx 1.21.3 (WinNMP)
A test with renew also worked.
C:\Certbot> certbot renew --cert-name "24.dedyn.io" --debug --dry-run
Saving debug log to C:\Certbot\log\letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing C:\Certbot\renewal\24.dedyn.io.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Simulating renewal of an existing certificate for 24.dedyn.io
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all simulated renewals succeeded:
C:\Certbot\live\24.dedyn.io\fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
But if I use pre-/posthook, the following error occurs, regardless of which program/script I specify.
(D:/WinNMP/WinNMP.exe /k = kill WinNMP, will be executed successfully
D:/WinNMP/WinNMP.exe /s = start WinNMP, will not be executed)
C:\Certbot> certbot renew --cert-name "24.dedyn.io" -v --debug --dry-run --pre-hook "D:/WinNMP/WinNMP.exe /k" --post-hook "D:/WinNMP/WinNMP.exe /s"
Saving debug log to C:\Certbot\log\letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing C:\Certbot\renewal\24.dedyn.io.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator standalone, Installer None
Running pre-hook command: D:/WinNMP/WinNMP.exe /k
Exception in thread Thread-2:
Traceback (most recent call last):
File "threading.py", line 973, in _bootstrap_inner
File "threading.py", line 910, in run
File "subprocess.py", line 1479, in _readerthread
File "encodings\cp1252.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 136: character maps to <undefined>
Failed to renew certificate 24.dedyn.io with error: 'NoneType' object has no attribute 'strip'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
C:\Certbot\live\24.dedyn.io\fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Exiting abnormally:
Traceback (most recent call last):
File "runpy.py", line 197, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Program Files (x86)\Certbot\bin\certbot.exe\__main__.py", line 29, in <module>
sys.exit(main())
File "C:\Program Files (x86)\Certbot\pkgs\certbot\main.py", line 19, in main
return internal_main.main(cli_args)
File "C:\Program Files (x86)\Certbot\pkgs\certbot\_internal\main.py", line 1632, in main
return config.func(config, plugins)
File "C:\Program Files (x86)\Certbot\pkgs\certbot\_internal\main.py", line 1518, in renew
renewal.handle_renewal_request(config)
File "C:\Program Files (x86)\Certbot\pkgs\certbot\_internal\renewal.py", line 511, in handle_renewal_request
raise errors.Error("{0} renew failure(s), {1} parse failure(s)".format(
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile C:\Certbot\log\letsencrypt.log or re-run Certbot with -v for more details.
Can someone help me please?