Error in installing cert

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: iitiansedu.com

I ran this command: sudo certbot --nginx

It produced this output: Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: iitiansedu.com
Type: unauthorized
Detail: 2606:4700:3030::6815:4314: Invalid response from https://wms.iitians.xyz/moodle/: "\n\n<html dir="ltr" lang="en" xml:lang="en">\n\n IITIANS Work Management System\n <link re"

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.

My web server is (include version): nginx

The operating system my web server runs on is (include version): ubuntu 20.04

My hosting provider, if applicable, is: ovh

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): terminal

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): Dont know

Would you explain more about what you are trying to do? Because what I see is fairly complicated.

You requested a cert for iitiansedu.com which is proxied at Cloudflare and redirects to a different domain wms.iitians.xyz which is also proxied at Cloudflare.

Since you have Cloudflare redirecting iitiansedu to the wms domain why do you even need a cert for it? Doesn't Cloudflare handle these redirects with its own cert?

2 Likes

I have already removed the redirect rule and pointed the domain to the ip but still its check the domain iitiansedu.com

That's not what I see from my own test server. And, it's not what the Let's Debug site sees. More explanation would be helpful.

3 Likes

Is it possible that the redirection is happening at Cloudflare?

1 Like

Removed and checked several times but still

Something is actively sending that redirect. I'm guessing it's Cloudflare.

1 Like

Maybe if the redirect was sent by your origin server as Permanent, Cloudflare would feel entitled to remember it for a long time even if the origin server is no longer sending it? I don't know offhand how that works.

1 Like

You may need to ask on the Cloudflare forum if you think you have the redirect disabled. Because it is still happening

Trace:
@0ms: Making a request to http://iitiansedu.com/.well-known/acme-challenge/letsdebug-test (using initial IP 2606:4700:3037::ac43:a7c6)
@0ms: Dialing 2606:4700:3037::ac43:a7c6
@93ms: Server response: HTTP 302 Moved Temporarily
@93ms: Received redirect to https://wms.iitians.xyz/moodle/
@859ms: Dialing 2606:4700:3033::ac43:b457
@2598ms: Server response: HTTP 200 OK

3 Likes

You definitely will want to review your Cloudflare configuration.

https://cf.sjr.org.uk/tools/check?7674229795824477a82029e2c6f091d1

4 Likes

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