Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems

Help me!! When I run sudo certbot -v --nginx -d trippae.com, it error:

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: api.trippae.com
Type: unauthorized
Detail: 2606:4700:3035::ac43:d9d1: Invalid response from https://api.trippae.com/.well-known/acme-challenge/cKmXhCMDk-XU1PlKBu2o4RRSd5a_swt5UNzine06m8c: 522

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.

Welcome @tuandh7x

Your domain DNS is proxied in Cloudflare so uses their CDN. The 522 error says the Cloudflare Edge cannot connect to your Origin server. See this Cloudflare community topic

Note this 522 error is not unique to Let's Encrypt. I get the same error trying to reach your home page. Example test using IPv6:

curl -I6 https://trippae.com

HTTP/2 522
date: Fri, 29 Jul 2022 15:06:49 GMT
server: cloudflare
cf-ray: 7326c1f9eba38200-IAD
(other headers omitted)
3 Likes

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