What you should do here is copy over the
/etc/letsencrypt/renewal directories, taking care to preserve the symlinks in
The files in the
/etc/letsencrypt/keys are simply named
####_key-certbot.pem respectively, where
#### is an increasing counter. This will create a conflict when trying to merge the files with another
I wouldn’t worry about copying the other files into
/etc/letsencrypt on the other server. You might want to make a backup of the files somewhere, but you won’t need them to move the site to the other server. If you’re curious, the other files in
/etc/letsencrypt/accountscontains ACME registration information. Certbot currently doesn’t have great support for multiple ACME accounts and for the protocol as is, it doesn’t matter. This is something you should at the very least keep a backup of though.
/etc/letsencrypt/csrcontains the CSR we used to get your cert.
/etc/letsencrypt/keyscontains the private key we generated for your new certificate. Another copy of this is also found in
/etc/letsencrypt/archivewhich you should copy over.