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 :
- compressed the files in the old server.
- moved to the new server.
- 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.
- 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)