I'm unable to generate a new certificate. Apparently everything runs correctly, but the problem occurs on writing certificates to letsencrypt/archive folder.
My domain is: *.srv-108-181-92-66.webserverhost.top
I ran this command: certbot certonly --dns-cloudflare --dns-cloudflare-credentials ~/.secret/cloudflare.ini --register-unsafely-without-email --agree-tos -d "*.srv-108-181-92-66.webserverhost.top"
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-cloudflare, Installer None
Account registered.
Requesting a certificate for *.srv-108-181-92-66.webserverhost.top
Performing the following challenges:
dns-01 challenge for srv-108-181-92-66.webserverhost.top
Unsafe permissions on credentials configuration file: ~/.secret/cloudflare.ini
Waiting 10 seconds for DNS changes to propagate
Waiting for verification...
Cleaning up challenges
An unexpected error occurred:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/letsencrypt/live/srv-108-181-92-66.webserverhost.top/cert.pem'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Litespeed
The operating system my web server runs on is (include version): CentOS 7
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): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 2.6.0
Logfile /var/log/letsencrypt/letsencrypt.log:
[...]
f5c9fF3u87WUAJu4Vh9C+ewXZtzL0LD46lYgpn7fv5w9sLS4zQ3CIC3udjJ5Gc/v
8VhPQaU1Enn7NW+4IHnfSeP6G5rzLEtl0PreC4k=
-----END CERTIFICATE-----
2023-06-20 06:19:35,008:DEBUG:acme.client:Storing nonce: riQvc_enNygqAoe_xc5dO9y8-XChhknlDcsaW-AJ_jxIQ4SjB9Q
2023-06-20 06:19:35,012:DEBUG:certbot._internal.storage:Creating directory /etc/letsencrypt/archive.
2023-06-20 06:19:35,012:DEBUG:certbot._internal.storage:Creating directory /etc/letsencrypt/live.
2023-06-20 06:19:35,013:DEBUG:certbot._internal.storage:Writing README to /etc/letsencrypt/live/README.
2023-06-20 06:19:35,014:DEBUG:certbot._internal.storage:Creating directory /etc/letsencrypt/archive/srv-108-181-92-66.webserverhost.top.
2023-06-20 06:19:35,014:DEBUG:certbot._internal.storage:Creating directory /etc/letsencrypt/live/srv-108-181-92-66.webserverhost.top.
2023-06-20 06:19:35,015:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/3024/bin/certbot", line 8, in <module>
sys.exit(main())
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/main.py", line 1864, in main
return config.func(config, plugins)
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/main.py", line 1597, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/main.py", line 141, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/client.py", line 528, in obtain_and_enroll_certificate
return storage.RenewableCert.new_lineage(
File "/var/lib/snapd/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/storage.py", line 1100, in new_lineage
with open(target["cert"], "wb") as f_b:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/letsencrypt/live/srv-108-181-92-66.webserverhost.top/cert.pem'
2023-06-20 06:19:35,020:ERROR:certbot._internal.log:An unexpected error occurred:
2023-06-20 06:19:35,021:ERROR:certbot._internal.log:FileNotFoundError: [Errno 2] No such file or directory: '/etc/letsencrypt/live/srv-108-181-92-66.webserverhost.top/cert.pem'