Move Certs SSL From Server A to Server B

Hello, I have 1 server in AWS with multiples apache vHost and SSL installed. I need to move all vHost to a new instance in AWS (new server) how can we do with the certs? I try run sudo certbot --apache to install the SSL in the new server and I did not receive any error but its impossible access, the vHost is running and all it’s Ok but I know not if I need to move the certs from server A to server B or I need to do something more.

The System is Ubuntu Server with Apache

1 Like

You can copy the entire /etc/letsencrypt/ folder to the new server.
But you have to be sure to copy the files as they are - some are symbolic links.
You could generate all new certs on the new server once the names point to that new server IP.

1 Like

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