How to migrate the SSL for on domain?

Hi I have one website in WordPress using SSL lets encrypt and now I need to move to other vps using centos 7.

I follow these steps in the new vps:

yum install epel-release mod_ssl
yum install python-certbot-apache

unzip the bkp folder /etc/letsencrypt (old server) in the new server

Add these lines in xxx.conf of my website

RewriteEngine on
RewriteCond %{SERVER_NAME} [OR]
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

But these steps above doesn’t work.

Be careful with zip. You need to make sure symlinks are preserved (--symlinks in Info-ZIP). The default behavior of tar is what you need, might be better:

tar cf letsencrypt.tar /etc/letsencrypt

You’ll need to be more specific as to where you run into trouble. Does your Apache config on the new server work OK?

apachectl -t
1 Like

I found this information and use to copy the etc/letsencrypt - Best Way to Backup letsencrypt folder

Now when I try to open my wordpress site I receive this message.

Safari can’t open the page “” because Safari can’t establish a secure connection to the server “”.


Hi @ce8

are you sure this isn’t only a caching problem (old ip address of your old server)?

Your site looks good, you have Grade B ( ):

Your certificate is valid and has both domain names:
expires in 49 days, - 2 entries

And your 4 standard urls are good:

Domainname Http-Status redirect Sec. G 301 0.287 A 301 0.287 A 301 3.640 B 200 3.040 B

Three redirects, one https destination, that’s good.

Same with FireFox and Chrome. So I don’t see a problem.

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