Replacing expired certificate with LetsEncrypt

Please fill out the fields below so we can help you better.

My domain is:

I ran this command: certbot --apache -d -d

It produced this output: Congratulations! You have successfully enabled and and

My operating system is (include version): CentOS7

My web server is (include version): Apache2

My hosting provider, if applicable, is: Linode

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

Hi, I followed digitalocean’s instructions ( and got a success message from CertBot but my site still says it has an expired certificate (previously used namecheap for an SSL cert). Any ideas how I get my site to use the new LE cert and not the expired one?


You will need to edit your apache config, and change the links in there for the SSL from the old cert, to the new ones ( which should be in /etc/letsencrypt/live/ ) then reload apache.

1 Like

Thanks. For those in a similar situation to me, I used the following example configs (replace with yours):

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/

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