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
https://docs.bitnami.com/general/apps/wordpress/administration/use-pagespeed/#disable-pagespeed
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/
https://docs.bitnami.com/general/apps/wordpress/configuration/configure-phpfpm-processes/

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

Description:
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?
Thanks.

What about if you run the commands manually?

sudo /opt/bitnami/letsencrypt/lego --path /opt/bitnami/letsencrypt --email="lawrence@peoworldwide.com" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt --domains=topsourceworldwide.com 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
="lawrence@peoworldwide.com" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt --
domains=topsourceworldwide.com renew
2022/06/20 08:26:43 [INFO] [topsourceworldwide.com] acme: Trying renewal with 206 hours remaining
2022/06/20 08:26:43 [INFO] [topsourceworldwide.com, www.topsourceworldwide.com] acme: Obtaining bundl
ed SAN certificate
2022/06/20 08:26:44 [INFO] [topsourceworldwide.com] AuthURL: https://acme-v02.api.letsencrypt.org/acm
e/authz-v3/113637151666
2022/06/20 08:26:44 [INFO] [www.topsourceworldwide.com] AuthURL: https://acme-v02.api.letsencrypt.org
/acme/authz-v3/115807201476
2022/06/20 08:26:44 [INFO] [topsourceworldwide.com] acme: authorization already valid; skipping chall
enge
2022/06/20 08:26:44 [INFO] [www.topsourceworldwide.com] acme: authorization already valid; skipping c
hallenge
2022/06/20 08:26:44 [INFO] [topsourceworldwide.com, www.topsourceworldwide.com] acme: Validations suc
ceeded; requesting certificates
2022/06/20 08:26:45 [INFO] [topsourceworldwide.com] 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