Our Let’s Encrypt certificate has expired. I thought Trellis automatically renews the certificate (https://roots.io/trellis/docs/ssl)? Is there anything special we need to configure for auto refresh in the future? and is there a way to manually renew the certificate?
For reference, Trellis is installed on a Digital Ocean droplet and has been working great up to this point.
2016/07/08 02:41:31 [error] 7259#7259: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org
Looks like it timed out when it tried to run a few days ago. Try renewing it manually: $ cd /var/lib/letsencrypt && sudo ./renew-certs.py and paste the output here.
If it works then re-run the nginx restart cmd from above and you should be good to go after restart.
Also, have you made any changes to your DNS settings? Please make sure when you ping yourdomain.com and www.yourdomain.com they both resolve correctly.
The DNS settings were the issue. The ‘www’ A record went missing after the wildcard was removed. I restored the record and was able to renew the certificate.
I don’t know which error logs to look into to show you anything there.
I ran this and the cert is fine now, but hope that this does not happen in 90 days again. ansible-playbook server.yml -e env=production -K --tags letsencrypt
it is now valid until 12/20
Valid From
Wed, 21 Sep 2016 03:30:00 GMT
Valid Until
Tue, 20 Dec 2016 03:30:00 GMT
Issuer
Let’s Encrypt Authority X3
SCTs
0 SCTs
Open full certificate details
I can confirm that the new end date for certificates did not go through until nginx was restarted.
Before that I checked the end date of the certificate with openssl x509 -enddate -noout -in site.com.cert and it was further ahead than what the browser was showing.
In the cron file for the letsencrypt-renewal the nginx service is supposed to reload so I am curious as to why it didn’t seem to work (because it obviously had renewed the certificates so the cron should be working).
Had the same issue with a site not renewing the certificate. Could not find errors. Did manage to renew manually. But when I searched for any cron jobs stored I could not find any either. Should there not be any added by Trellis for this?
Please ensure your cron job (normally at /etc/cron.d/letsencrypt-certificate-renewal) has the full path to service in its reload command (original PR). That was apparently my issue too—renewal was just fine but nginx never reloaded after renewal.