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} =xxxx.com [OR]
RewriteCond %{SERVER_NAME} =xxx.com
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 “https://www.lojadasroupinhas.com.br” because Safari can’t establish a secure connection to the server “www.lojadasroupinhas.com.br”.

Regards

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 ( https://check-your-website.server-daten.de/?q=lojadasroupinhas.com.br ):

Your certificate is valid and has both domain names:

CN=lojadasroupinhas.com.br
	26.01.2019
	26.04.2019
expires in 49 days	lojadasroupinhas.com.br, 
www.lojadasroupinhas.com.br - 2 entries

And your 4 standard urls are good:

Domainname Http-Status redirect Sec. G
• http://lojadasroupinhas.com.br/
104.251.219.72 301 https://lojadasroupinhas.com.br/ 0.287 A
• http://www.lojadasroupinhas.com.br/
104.251.219.72 301 https://www.lojadasroupinhas.com.br/ 0.287 A
• https://lojadasroupinhas.com.br/
104.251.219.72 301 https://www.lojadasroupinhas.com.br/ 3.640 B
• https://www.lojadasroupinhas.com.br/
104.251.219.72 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.