I moved letsencrypt from one server to another behind NAT, the url nor external IP never changed. The old server using a backport for jessie, the new server is ubuntu.
I copied the letsencrypt directory, recreated the symlinks for the pem files and updated the config, but I think somewhere there is an error.
Running certbot renew --dry-run I get:
Attempting to renew cert (#######.com) from /etc/letsencrypt/renewal/#######.com.conf produced an unexpected error: Failed authorization procedure. #######.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://########.com/.well-known/acme-challenge/##################### [##.##.###.###]: 404. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/######.com/fullchain.pem (failure)
I think this maybe because of nginx, but I don’t know what to look for
It’s weird my dns is pointing the subdomain to the ip of the server, but using a web browser I cannot see the nginx index html, ping finds the right server though and in the internal network it works as well. I configured nginx to listen on 80 and 443, but its not presenting to web