SSL Certificate is not automatically renewing itself

Keywords: WordPress - AWS - Technical issue - Secure Connections (SSL/HTTPS)

bndiagnostic ID: e57080d8-7747-5125-cfe9-dc92091bb80a

bndiagnostic output:

? Apache: Found possible issues
? Php: Found possible issues

bndiagnostic failure reason: The suggested guides are not related with my issue

Hi Bitnami People
I’ve never had this issue before, but my SSL certificates have not automatically renewed. I have been through a number of online guides to try to get rewal running but nothing has worked so far (I am a real novice with Linux, Apache etc.). I have restored my running LightSail instance from a snapshot taken before I started to try to ‘fix’ this, so the diagnostic was run against the instance as it was when I started to receive the expiry notice from Lets Encrypt. Can you help please?

What about if you run the commands manually?

sudo /opt/bitnami/letsencrypt/lego --path /opt/bitnami/letsencrypt --email="" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt renew
sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/conf/httpd.conf -k graceful

Hi Jota,
Here’s the output from the first command:

bitnami@ip-172-26-1-179:~$ sudo /opt/bitnami/letsencrypt/lego --path /opt/bitnami/letsencrypt --email
="" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt -- renew
2022/06/20 08:26:43 [INFO] [] acme: Trying renewal with 206 hours remaining
2022/06/20 08:26:43 [INFO] [,] acme: Obtaining bundl
ed SAN certificate
2022/06/20 08:26:44 [INFO] [] AuthURL:
2022/06/20 08:26:44 [INFO] [] AuthURL:
2022/06/20 08:26:44 [INFO] [] acme: authorization already valid; skipping chall
2022/06/20 08:26:44 [INFO] [] acme: authorization already valid; skipping c
2022/06/20 08:26:44 [INFO] [,] acme: Validations suc
ceeded; requesting certificates
2022/06/20 08:26:45 [INFO] [] Server responded with a certificate.

The second command produced no output… should the server or Apache be re-started at this point?

Thanks for your assistance.

I can see your certificate is valid till September so the certificate was renewed properly and Apache was restarted as well. The cron service should run these commands but if you run into this issue again, you can do it manually.

Hi Jota,
I concur; I can see that the SSL certificate has been renewed and applied now. Thanks very much for your timely assistance, really appreciated.
Best regards
Lawrence Tew