Challenge failed for domain

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:
fali.phpadmin.ir

I ran this command:
sudo certbot certonly --webroot -w /home/centos/fali.phpadmin.ir/public_html/ -d fali.phpadmin.ir -d www.fali.phpadmin.ir

It produced this output:
Challenge failed for domain www.fali.phpadmin.ir
Challenge failed for domain fali.phpadmin.ir
http-01 challenge for www.fali.phpadmin.ir
http-01 challenge for fali.phpadmin.ir
Cleaning up challenges
Some challenges have failed.

My web server is (include version):
nginx

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

My hosting provider, if applicable, is:

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

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

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

I have got this error when I want to create a new cert

Challenge failed for domain www.fali.phpadmin.ir
Challenge failed for domain fali.phpadmin.ir
http-01 challenge for www.fali.phpadmin.ir
http-01 challenge for fali.phpadmin.ir
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: www.fali.phpadmin.ir
   Type:   unauthorized
   Detail: Invalid response from
   http://www.fali.phpadmin.ir/.well-known/acme-challenge/86P4qxpV3U95ORq1TE-7pKPlGkzAQQjex2QoMqet9DI
   [193.176.243.228]: "<!DOCTYPE html>\n<html>\n<head>\n\n    <meta
   charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\"
   content=\"IE=edge\">\n<title>Not Found"

   Domain: fali.phpadmin.ir
   Type:   unauthorized
   Detail: Invalid response from
   http://fali.phpadmin.ir/.well-known/acme-challenge/FE2V5rnffzcJkzJWfHl9Luw9Sh0k5rHm5PNjDgw20Dk
   [193.176.243.228]: "<!DOCTYPE html>\n<html>\n<head>\n\n    <meta
   charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\"
   content=\"IE=edge\">\n<title>Not Found"

Hi @falahatiali

checking your domain there is a wrong certificate ( https://check-your-website.server-daten.de/?q=fali.phpadmin.ir ):

CN=blog.phpadmin.ir
	11.09.2019
	10.12.2019
expires in 89 days	
blog.phpadmin.ir, www.blog.phpadmin.ir - 2 entries

Looks like the wrong vHost answers.

There is a nginx. What says

nginx -T

The url-check shows the problem.

http://fali.phpadmin.ir/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de

is redirected to your other domain

https://www.phpadmin.ir/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de

It’s possible to use such a redirect to another domain port 80 or port 443. But then you must use the webroot of your other domain in your command.

2 Likes

What is this error:(

Challenge failed for domain www.phpadmin.ir
Challenge failed for domain phpadmin.ir
http-01 challenge for www.phpadmin.ir
http-01 challenge for phpadmin.ir
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: www.phpadmin.ir
   Type:   unauthorized
   Detail: Invalid response from
   https://www.phpadmin.ir/.well-known/acme-challenge/ZbVya5VxnxxjBJoo6uCJHVmRwM_vwgw7mOjS1o7YOXI
   [193.176.243.228]: "<html>\r\n<head><title>404 Not
   Found</title></head>\r\n<body>\r\n<center><h1>404 Not
   Found</h1></center>\r\n<hr><center>nginx</center>\r\n"

   Domain: phpadmin.ir
   Type:   unauthorized
   Detail: Invalid response from
   https://www.phpadmin.ir/.well-known/acme-challenge/GuOS3MGWQ2U_WZsB_bB00SDsl6DG8pnYNW3o8pFWtXQ
   [193.176.243.228]: "<html>\r\n<head><title>404 Not
   Found</title></head>\r\n<body>\r\n<center><h1>404 Not
   Found</h1></center>\r\n<hr><center>nginx</center>\r\n"

I have used laravel as web framework

Looks like you have changed something.

There is a check of your domain - ~~90 minutes old - https://check-your-website.server-daten.de/?q=phpadmin.ir

Checking /.well-known/acme-challenge/random-filename there is content:

Visible Content: خانه تماس 3 حسام موسوی با من تماس بگیر لطفا… 4 ساعت قبل پیمان احمدی من پیامتو دریافت کردم 4 ساعت قبل سارا وکیلی پروژه اتون عالی بود مرسی واقعا 4 ساعت قبل مشاهده همه پیام‌ها 15 15 نوتیفیکیشن 4 پیام جدید 3 دقیقه 8 درخواست دوستی 12 ساعت 3 گزارش جدید 2 روز مشاهده همه نوتیفیکیشن داشبورد خانه صفحه اصلی خطا ERROR بازگشت به صفحه قبل صفحه اصلی CopyLeft © 2018 Ali Falahati .

But checking that url manual now there is the standard nginx 404 answer.

Looks like your Laravel has answered, now your raw server answers.

1 Like

what should I do. I dont understand?

What’s your complete command you have used?

What says

nginx -T

It says successfull. and there is no problem with nginx. I think it belongs to Laravel. I cant access any files in path .well-known/acme-challenges/…
I think it is for .htaccess or laravel routes :frowning:

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