I cant get ssl certificate

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: dev.jinskadamthodu.com
Type: unauthorized
Detail: 2606:4700:3035::6815:3a86: Invalid response from http://dev.jinskadamthodu.com/.well-known/acme-challenge/Q-SoDfcylgO-ZtW1iv_SVdKrBHKSiAIbTmNc0y9Kcnk: 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.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

I see the same thing when I visit:

If you're using Cloudflare, Cloudflare needs to be able to reach your server. It can't. How you fix that is between you and them.

5 Likes

You could either use a Cloudflare "origin" certificate (it's a cert that Cloudflare trusts but isn't useful for public traffic) installed on your service Origin CA certificates · Cloudflare SSL/TLS docs or you can adjust your website SSL settings in the cloudflare control panel to be less strict and allow the invalid certificate while you get Let's Encrypt setup, then put it back once you have a valid certificate.

3 Likes

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