How to migrate the Let's Encrypt Certficate mapped to one server to another server with different ip?

I have created one SSL certificate in my older server and I need to use it on another server with a different IP address so I performed the below steps :

  1. compressed the files in the old server.
  2. moved to the new server.
  3. uncompressed the file in the new server and made all links the same as in the old server. Tested the Nginx which said SSL is okay.
  4. Tried to renew the cert in new server getting the below error -

Error :
Certbot failed to authenticate some domains (authenticator: Nginx). The Certificate Authority reported these problems:
Domain: mydomain
Type: unauthorized
Detail: OLD IP : Invalid response from https://mydomain/.well-known/acme-challenge/_nK4llWcGuAboABRnVzXF4iuqEkq1CtwGAPK5uh7TzI: "<html lang="en" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA"

Domain: mydomain
Type: unauthorized
Detail: OLD IP : : Invalid response from https://mydomain/.well-known/acme-challenge/-cLzRlcQTutwZfCToOjlf_VGVTPQLLzjoyagv5H00c4: "<html lang="en" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA"

Hint: The Certificate Authority failed to verify the temporary Nginx configuration changes made by Certbot. Ensure the listed domains point to this Nginx server and that it is accessible from the internet.

Failed to renew certificate mydomain with error: Some challenges have failed.

All simulated renewals failed. The following certificates could not be renewed:
*******/fullchain.pem (failure)

1 renew failure(s), 0 parse failure(s)

Welcome to the community @Yugandran

Let's Encrypt servers validate a request using the IP in the public DNS system. You will need to change your A and/or AAAA record in DNS to point to your new server.


Hi Mike,

Thanks for the update.

Can you please guide how to change the A / AAA record in DNS.?

1 Like

If you share your domain name we can help inform you who to contact.


Your domain name registrar and services are handled by GoDaddy.

You need to login your account there to change your DNS records




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