Hello,
Sorry to bother but so far I have not found any similar posts or solutions to this problem. I have full root access to all my machines and server. I have web, mail, and DNS servers on 3 separate droplets at Digital Ocean. Here’s a quick description, the specifics are below.
I setup a webserver at Digital Ocean. Then I installed the letsencrypt ssl certificate using easyengine. The letsencrypt certificate issued is for the tectonicsystem.ca and also for WWW.tectonicsystem.ca. Everything seemed fine but the 90 day renewal failed, and now the certificate is expired. All attempts to renew or revoke the certificate have failed. Error messages below.
You can see the two certificates here https://crt.sh/?q=tectonicsystem.ca
My domain is: tectonicsystem.ca
here’s a listing of the certificate:
/opt/letsencrypt# ./certbot-auto certificates
Invalid OCSP response for /etc/letsencrypt/live/tectonicsystem.ca/cert.pem: param nextUpdate is in the past.
Found the following certs:
Certificate Name: tectonicsystem.ca
Domains: tectonicsystem.ca www.tectonicsystem.ca
Expiry Date: 2019-05-12 04:00:16+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/tectonicsystem.ca/fullchain.pem
Private Key Path: /etc/letsencrypt/live/tectonicsystem.ca/privkey.pem
I ran this command, in the /opt/letsencrypt/ directory:
./certbot-auto revoke --cert-path /etc/letsencrypt/live/tectonicsystem.ca/fullchain.pem --key-path /etc/letsencrypt/live/tectonicsystem.ca/privkey.pem
It produced this output:
An unexpected error occurred:
The client lacks sufficient authorization :: Certificate is expired
Here is the tail of the logfile: root@beta:/var/log/letsencrypt# tail -100 letsencrypt.log
I got this response:
.
.
.
Connection: close
{
“type”: “urn:ietf:params:acme:error:unauthorized”,
“detail”: “Certificate is expired”,
“status”: 403
}
2019-06-03 10:17:09,024:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/letsencrypt”, line 11, in
sys.exit(main())
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 1379, in main
return config.func(config, plugins)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 1087, in revoke
acme.revoke(jose.ComparableX509(cert), config.reason)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 918, in revoke
return self.client.revoke(cert, rsn)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 760, in revoke
return self._revoke(cert, rsn, self.directory[‘revokeCert’])
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 210, in _revoke
reason=rsn))
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 95, in _post
return self.net.post(*args, **kwargs)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 1179, in post
return self._post_once(*args, **kwargs)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 1193, in _post_once
response = self._check_response(response, content_type=content_type)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/acme/client.py”, line 1048, in _check_response
raise messages.Error.from_json(jobj)
Error: urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Certificate is expired
2019-06-03 10:17:09,025:ERROR:certbot.log:An unexpected error occurred:
2019-06-03 10:17:09,025:ERROR:certbot.log:The client lacks sufficient authorization :: Certificate is expired
here is the renewal information in
/etc/letsencrypt/renewal/tectonicsystem.ca.conf
renew_before_expiry = 30 days
version = 0.31.0
archive_dir = /etc/letsencrypt/archive/tectonicsystem.ca
cert = /etc/letsencrypt/live/tectonicsystem.ca/cert.pem
privkey = /etc/letsencrypt/live/tectonicsystem.ca/privkey.pem
chain = /etc/letsencrypt/live/tectonicsystem.ca/chain.pem
fullchain = /etc/letsencrypt/live/tectonicsystem.ca/fullchain.pem
Options used in the renewal process
[renewalparams]
authenticator = webroot
account = redacted
webroot_path = /var/www/tectonicsystem.ca/htdocs,
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]
tectonicsystem.ca = /var/www/tectonicsystem.ca/htdocs
My web server is (include version): nginx version: nginx/1.14.0 (EasyEngine)
The operating system my web server runs on is (include version):
Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)
My hosting provider, if applicable, is: digital ocean
I can login to a root shell on my machine : yes
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 0.34.2