Renew apache server and continue to use same certificate


Hi, I have a Debian server where I have several Virtual servers who I use for different development purposes and web-services.
And on one of this I have my own web -page on a apache2 sever where I use letsencrypt certificate. But now I have tried different services there who I don’t want to use any more because I’m in a proses where I programming my own page and those services and apps I want to have there.

This is why I now want to delete the whole server who I have used to now and setup a new one, still with Debian as operation system and apache2 as web -server and I also want to continue to use my letsencrypt certificate.

So my question is how should I do this so I still can use my letsencrypt certificate on the new server without getting any problem


Hi @Larsiutvikling

check your Apache configuration file. There is something like

<VirtualHost *:443>
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/apache.crt
    SSLCertificateKeyFile /etc/ssl/private/apache.key

Copy these two files /etc/ssl/certs/apache.crt + /etc/ssl/private/apache.key to your other server and use these files.


Although this is certainly the correct advice for how to do this, it’s also not necessarily a good idea because there will be no mechanism on the new server for renewing the certificate when it expires in 90 days. That’s why we’d recommend running a Let’s Encrypt client application directly on the new web server, so that it can perform automated renewals in the future.


Yep, the installation of a client and the renew must done on the new server.


But then I need to copy the certificate file first?


If you want to use the active certificate - yes.


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