My domain is: sonar.endurosatlab.com
I ran this command (part of a Python script):
certbot_cmd = [
"certbot", "certonly", "--non-interactive", "--agree-tos", "-v",
"--dns-route53",
"-d", URL
]
(Where URL variable = sonar.endurosatlab.com)
It produced this output:
Failed to renew certificate for sonar.endurosatlab.com.
Certbot output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found credentials in environment variables.
Plugins selected: Authenticator dns-route53, Installer None
Unable to register an account with ACME server. Error returned by the ACME server: Unable to validate JWS :: Invalid Content-Type header on POST. Content-Type must be "application/jose+json"
My web server is (include version): N/A
The operating system my web server runs on is (include version): N/A
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): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 4.0.0
More context:
I am running a Python script to renew certificates. The job is scheduled to run every morning in our Gitlab environment and check for expiring certificates. If the certificate of a given domain expires, the certbot kicks in and issues a new LE certificate and stores it in AWS S3.
The domain endurosatlab.com is hosted in AWS Route53, hence I use certbot-dns-route53.
That used to work like a charm few days ago but today I'm seeing the error mentioned above. I haven't changed anything on the Gitlab workflow.