I've been running this Django site built on AWS Lightsail for over a year with zero problems. I used the bncert-tool to create an automatically-updating SSL certificate. The certificate had been renewing fine every 30 days, and I have not touched anything in the server for months because there was no need to. However, I received an email telling me the certificate was about to expire -- I checked the /var/mail/ to find some errors from my cron job (detailed below).
I have no idea what happened/changed, and I don't know how to fix this! Can anyone please help?
My domain is: www.mymoneyfirst.com
I have a cron job scheduled running this command for renewal:
sudo /opt/bitnami/letsencrypt/lego --path /opt/bitnami/letsencrypt --email="MY-EMAIL" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt --domains=www.mymoneyfirst.com renew && sudo /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -k graceful # bncert-autorenew
It produced this output:
unable to get authorization for: https://acme-v02.api.letsencrypt.org/acme/authz-v3/175500952797
one or more domains had a problem:
failed to post JWS message: failed to sign content: failed to sign content: square/go-jose: Error generating nonce:
failed to get nonce from HTTP HEAD: 503 ::HEAD :: https://acme-v02.api.letsencrypt.org/acme/new-nonce :: unexpected end of JSON input ::
My web server is (include version): Bitnami on apache/2.4.46 (Unix)
My hosting provider, if applicable, is: AWS Lightsail
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