Last update at :2024-06-29,Edit by888u
If we use SSL certificates for general project websites, it is more convenient and more convenient to directly use Let\\’s Encrypt SSL certificates. And our commonly used LAMP, LNMP, and various panels come with one-click installation of Let\\’s Encrypt SSL certificates. If we are a slightly formal project and it seems that we do not need a free certificate, then purchase a paid certificate.
Today, I met a netizen who sent me an email and asked when he was migrating his website to another server. The website was originally using Let\\'s Encrypt SSL certificate. If the website database and files were migrated, there would be no problem. Pack. What if I need to migrate my Let\\’s Encrypt certificate? Generally, our approach is to directly resolve the domain name to the new server IP, wait for it to take effect, and automatically apply for a new Let\\’s Encrypt certificate, and then import the database and migrate the files.
The above should be the simplest method. However, if we need to migrate the SSL certificate file in the original server, it is also possible. Here is a brief introduction to the method.
/etc/letsencrypt/archive/etc/letsencrypt/live/etc/letsencrypt/renewal
Copy the three folders, package them, and then migrate the corresponding documents to the new server.
cd /etc/letsencrypttar zcf letsencrypt.tar.gz archive live renewal
Here we package directly.
tar zxf letsencrypt.tar.gz
Then upload it to the corresponding directory of the new server and decompress it.
Finally, we need to check whether the SSL configuration file path of the corresponding website corresponds. Relatively speaking, the latter migration is more troublesome, so it is easier for us to directly reconfigure it.
Recommended site searches: registered domain name, domain name search, domain name expiration query, the best virtual host in mainland China, Singapore server, website domain name ip address query, ip address, overseas virtual host space, Hong Kong virtual host space, seconds Change ip server,
发表评论