I am unable to understand why certbot command reported failures for .com, .com-0001, -0002 and -0004
but issued certificate under directory with prefix -0003
This resulted in a broken cert issuer code on my server side that thinks 0004 must be the latest
How may I avoid this to have a single directory with latest certificate ?
My domain is: egnyte-appliance.com
I ran this command: ['--webroot', '--agree-tos', '--email', 'ss_certs@egnyte.com', '-n', '--config-dir', '/opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com', '--logs-dir', '/opt/certservice/3.3.0.1652419071/LE/logs', '--work-dir', '/opt/certservice/3.3.0.1652419071/LE/work', '-w', '/usr/share/nginx/html/letsencrypt', '-d', 'bjns60jwh9.qa.egnyte-appliance.com', '--force-renewal']
It produced this output:
2023-10-17 14:38:17,845:DEBUG:certbot._internal.cert_manager:Renewal conf file /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/renewal/bjns60jwh9.qa.egnyte-appliance.com-0001.conf is broken. Skipping.
2023-10-17 14:38:17,845:DEBUG:certbot._internal.cert_manager:Traceback was:
Traceback (most recent call last):
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/cert_manager.py", line 444, in _search_lineages
candidate_lineage = storage.RenewableCert(renewal_file, cli_config)
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 498, in __init__
self._check_symlinks()
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 572, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /opt/certservice/3.3.0.1642516670/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com-0001/cert.pem to be a symlink
2023-10-17 14:38:17,846:DEBUG:certbot._internal.cert_manager:Renewal conf file /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/renewal/bjns60jwh9.qa.egnyte-appliance.com-0002.conf is broken. Skipping.
2023-10-17 14:38:17,846:DEBUG:certbot._internal.cert_manager:Traceback was:
Traceback (most recent call last):
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/cert_manager.py", line 444, in _search_lineages
candidate_lineage = storage.RenewableCert(renewal_file, cli_config)
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 498, in __init__
self._check_symlinks()
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 572, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /opt/certservice/3.3.0.1645093818/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com-0002/cert.pem to be a symlink
2023-10-17 14:38:17,849:DEBUG:certbot._internal.cert_manager:Renewal conf file /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/renewal/bjns60jwh9.qa.egnyte-appliance.com-0004.conf is broken. Skipping.
2023-10-17 14:38:17,849:DEBUG:certbot._internal.cert_manager:Traceback was:
Traceback (most recent call last):
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/cert_manager.py", line 444, in _search_lineages
candidate_lineage = storage.RenewableCert(renewal_file, cli_config)
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 498, in __init__
self._check_symlinks()
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 572, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /opt/certservice/3.3.0.1649426201/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com-0004/cert.pem to be a symlink
2023-10-17 14:38:17,850:DEBUG:certbot._internal.cert_manager:Renewal conf file /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/renewal/bjns60jwh9.qa.egnyte-appliance.com.conf is broken. Skipping.
2023-10-17 14:38:17,850:DEBUG:certbot._internal.cert_manager:Traceback was:
Traceback (most recent call last):
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/cert_manager.py", line 444, in _search_lineages
candidate_lineage = storage.RenewableCert(renewal_file, cli_config)
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 498, in __init__
self._check_symlinks()
File "/opt/certservice/3.3.0.1652419071/venv/lib/python3.6/site-packages/certbot/_internal/storage.py", line 572, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /opt/certservice/3.3.0.1641979321/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com/cert.pem to be a symlink
Finally it renewed certificate:
2023-10-17 14:38:23,765:DEBUG:certbot._internal.storage:Writing new private key to /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/archive/bjns60jwh9.qa.egnyte-appliance.com-0003/privkey17.pem.
2023-10-17 14:38:23,765:DEBUG:certbot._internal.storage:Writing certificate to /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/archive/bjns60jwh9.qa.egnyte-appliance.com-0003/cert17.pem.
2023-10-17 14:38:23,765:DEBUG:certbot._internal.storage:Writing chain to /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/archive/bjns60jwh9.qa.egnyte-appliance.com-0003/chain17.pem.
2023-10-17 14:38:23,765:DEBUG:certbot._internal.storage:Writing full chain to /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/archive/bjns60jwh9.qa.egnyte-appliance.com-0003/fullchain17.pem.
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var config_dir=/opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var work_dir=/opt/certservice/3.3.0.1652419071/LE/work (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var logs_dir=/opt/certservice/3.3.0.1652419071/LE/logs (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var authenticator=webroot (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var webroot_path=/usr/share/nginx/html/letsencrypt (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var webroot_path=/usr/share/nginx/html/letsencrypt (set by user).
2023-10-17 14:38:23,777:DEBUG:certbot._internal.cli:Var webroot_map={'webroot_path'} (set by user).
2023-10-17 14:38:23,778:DEBUG:certbot._internal.storage:Writing new config /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/renewal/bjns60jwh9.qa.egnyte-appliance.com-0003.conf.new.
2023-10-17 14:38:23,780:DEBUG:certbot._internal.display.obj:Notifying user:
Successfully received certificate.
Certificate is saved at: /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com-0003/fullchain.pem
Key is saved at: /opt/certservice/3.3.0.1652419071/LE/config/bjns60jwh9.qa.egnyte-appliance.com/live/bjns60jwh9.qa.egnyte-appliance.com-0003/privkey.pem
This certificate expires on 2024-01-15.
My web server is (include version): Nginx
The operating system my web server runs on is (include version): CentOS Linux release 7.9.2009 (Core)
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 1.23.0