After running certbot --apache -d pagesmade.com -d www.pagesmade.com
I get the following error:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for pagesmade.com
http-01 challenge for www.pagesmade.com
Enabled Apache rewrite module
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. pagesmade.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://pagesmade.com/.well-known/acme-challenge/MB4MjstBc3XYRnIJoSU5mPabdne_ojv37NsVw5TVrnI [13.126.194.94]: “\r\n502 Bad Gateway\r\n<body bgcolor=“white”>\r\n
502 Bad Gateway
\r\n\r”, www.pagesmade.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.pagesmade.com/.well-known/acme-challenge/14biheL6IvJhfouJParSP1cwBhyMilD2ywNn-eCoLA8 [13.126.194.94]: “\r\n502 Bad Gateway\r\n<body bgcolor=“white”>\r\n502 Bad Gateway
\r\n\r”IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: pagesmade.com
Type: unauthorized
Detail: Invalid response from
http://pagesmade.com/.well-known/acme-challenge/MB4MjstBc3XYRnIJoSU5mPabdne_ojv37NsVw5TVrnI
[13.126.194.94]: “\r\n502 Bad
Gateway\r\n<body
bgcolor=“white”>\r\n502 Bad
\r\n\r”
GatewayDomain: www.pagesmade.com
Type: unauthorized
Detail: Invalid response from
http://www.pagesmade.com/.well-known/acme-challenge/14biheL6IvJhfouJParSP1cwBhyMilD2ywNn-eCoLA8
[13.126.194.94]: “\r\n502 Bad
Gateway\r\n<body
bgcolor=“white”>\r\n502 Bad
\r\n\r”
GatewayTo fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
What may be the possible solns.