Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: commodorekong.duckdns.org
I ran this command: `certbot certonly --standalone -d commodorekong.duckdns.org
It produced this output: pywintypes.error: (5, 'CreateFile', 'Access is denied.')
My web server is (include version): N/A, using the software foundryvtt.
The operating system my web server runs on is (include version): Windows 11
My hosting provider, if applicable, is: N/A
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): N/A
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):certbot 1.24.0
I run a piece of software called FoundryVTT on a Windows 11 Mini PC that I have an SSL certificate from Lets Encrypt. I had followed the instructions on their site on setting up certbot and getting an ssl cert from letsencrypt.
When I first set this up and setup certbot it was on another computer, that computer started having problems randomly crashing and I had to return it and get another. I'm coming up on my first cert renewal and I never moved the files in the certbot folder, only the fullchain.pem and privkey.pem files that foundry uses. I've tried to renew and just create a commodorekong.duckdns.org cert and have been getting pywintypes.error: (5, 'CreateFile', 'Access is denied.') errors. My account is an admin account and I run the command in a command prompt running as admin.
I can post an entire logfile but it seems to go through most of the steps of making the ssl cert and then fails at this step:
2023-04-02 12:53:01,395:DEBUG:acme.client:Storing nonce: 371CFLPb3OxJmWmrkY-SGF_aYshEXkw1w66FqKWMqkHoQeU
2023-04-02 12:53:01,412:DEBUG:certbot._internal.log: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
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 1679, in main
return config.func(config, plugins)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\main.py", line 1538, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\main.py", line 139, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\client.py", line 526, in obtain_and_enroll_certificate
return storage.RenewableCert.new_lineage(
File "C:\Program Files (x86)\Certbot\pkgs\certbot_internal\storage.py", line 1053, in new_lineage
config_file, config_filename = util.unique_lineage_name(
File "C:\Program Files (x86)\Certbot\pkgs\certbot\util.py", line 281, in unique_lineage_name
return safe_open(preferred_path, chmod=chmod), preferred_path
File "C:\Program Files (x86)\Certbot\pkgs\certbot\util.py", line 229, in safe_open
fd = filesystem.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR, *open_args)
File "C:\Program Files (x86)\Certbot\pkgs\certbot\compat\filesystem.py", line 247, in open
raise err
File "C:\Program Files (x86)\Certbot\pkgs\certbot\compat\filesystem.py", line 237, in open
handle = win32file.CreateFile(file_path, win32file.GENERIC_READ,
pywintypes.error: (5, 'CreateFile', 'Access is denied.')
2023-04-02 12:53:01,412:ERROR:certbot._internal.log:An unexpected error occurred:
2023-04-02 12:53:01,412:ERROR:certbot._internal.log:pywintypes.error: (5, 'CreateFile', 'Access is denied.')