Expired Certificate in Wordpress Site Won't archive

My certificate expired on June 3, sabreez.com-0001
and I added a new certificate sabreez.com-0002
The website is still using the expired certificate, and warning visitors that our site has an expired certificate.
How can I implement the new certificate?

My domain is: www.sabreez.com

I ran this command: sudo certbot revoke /etc/letsencrypt/live/sabreez.com-0001/fullchain.pem

It produced this output:usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: /etc/letsencrypt/live/sabreez.com-0001/fullchain.pem
bitnami@ip-172-26-12-43:~$

My web server is (include version): AWS Lightsail

The operating system my web server runs on is (include version):WordPress

My hosting provider, if applicable, is: AWS

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): WordPress

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): Bitnami WordPress 4.9.8-0

You cannot revoke an expired certificate (there would be no point), but you can certainly delete it:

certbot delete --cert-name sabreez.com-0001

Make sure that the certificate is not being used by your Bitnami installation, before you decide to do that:

grep -R sabreez.com-0001 /opt/bitnami/apache2

The above should not give any matches.

Bitnami have some built-in scripts that can do this for you - have a look at Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application .

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.