Copy certificates from vps A to vps B


#1

Hi! I moved all my websites from vps A to vps B.

I copied my folder /etc/letsencrypt from vps A to vps B.

Should i do anything else?


#2

check whether certbot renew --dry-run works fine without any failure


#3

Did you make sure to copy via a method that will preserve symbolic link structure?


#4

mmmm eh, well, i did this:

I compress /etc/letsencrypt in .tar, copied to vps B and decompress tar.

How its the good way to preserve the symbolic link structure? thx


#5

It might have worked depending on your tar defaults. You can run ls -l /etc/letsencrypt/live/* and see if the items there are links (indicated by ->).


#6

Yes! all looks good! i used “tar cvf” and “tar xvf”

i am comparing and investigating the failes.

But, i have 2 folders in accounts directory in the new vps.

acme-staging.api.letsencrypt.org
acme-v01.api.letsencrypt.org (this one, it was in the old vps)

Maybe i need to edit “account” in renewal files domains?


#7

You should make sure that the account in those renewal configuration files matches your acme-v01 account hash (rather than the acme-staging account hash).


#8

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