# Certbot - Cannot Pass HTTP-01 Challenge

**URL:** <https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925>\
**Category:** Help\
**Created:** [May 12, 2017, 4:15pm UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925 "2017-05-12T16:15:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnegnalo](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@gnegnalo](https://community.letsencrypt.org/u/gnegnalo)\
**Post date:** [May 12, 2017, 4:15pm UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925/1 "2017-05-12T16:15:46Z")

</div>

Hi all, I have a problem can not solve, when I make the request I always get this error, can you help me?

The folder /.well-known is created but not /acme-challenge and cDP3eS4kM5CHy1LKSi6IIYU-6Xh927TUWFjvdXV0GPM

[root@… ~]# sudo certbot --email [info@mysite.com](mailto:info@mysite.com) --agree-tos certonly --webroot -w /var/www/vhosts/mysite.com -d [www.mysite.com](http://www.mysite.com)  
Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Starting new HTTPS connection (1): [acme-v01.api.letsencrypt.org](http://acme-v01.api.letsencrypt.org)  
Obtaining a new certificate  
Performing the following challenges:  
http-01 challenge for [www.mysite.com](http://www.mysite.com)  
Using the webroot path /var/www/vhosts/mysite.com for all unmatched domains.  
Waiting for verification…  
Cleaning up challenges  
Unable to clean up challenge directory /var/www/vhosts/mysite.com/.well-known/acme-challenge  
Failed authorization procedure. [www.mysite.com](http://www.mysite.com) (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [http://www.mysite.com/.well-known/acme-challenge/cDP3eS4kM5CHy1LKSi6IIYU-6Xh927TUWFjvdXV0GPM:](http://www.mysite.com/.well-known/acme-challenge/cDP3eS4kM5CHy1LKSi6IIYU-6Xh927TUWFjvdXV0GPM:) " \<!–[if IE 7]\>\<html class=“n”

IMPORTANT NOTES:

- The following errors were reported by the server:

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [May 12, 2017, 4:56pm UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925/2 "2017-05-12T16:56:16Z")

</div>

The challenge is deleted after an attempt, therefore you can’t find it any longer after certbot has quit.

Question: is the webroot correct? For example, if you place a test file in it, like `/var/www/vhosts/mysite.com/testfile`, can you access it through `http://mysite.com/testfile`?

---

<div class="post-metadata">

**Author:** ![gnegnalo](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@gnegnalo](https://community.letsencrypt.org/u/gnegnalo)\
**Post date:** [May 15, 2017, 8:46am UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925/3 "2017-05-15T08:46:39Z")

</div>

Thanks for reply!!,  
If I insert a file test in the path that you indicated i can not access…only if I insert the file in the path  
/var/www/vhosts/mysite.com/httpdocs  
I can access on file from the path [mysite.com/testfile](http://mysite.com/testfile)

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [May 15, 2017, 11:21am UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925/4 "2017-05-15T11:21:20Z")

</div>

> [@gnegnalo](#):
>
> only if I insert the file in the path  
> /var/www/vhosts/mysite.com/httpdocs

You've answered your problem right here 😉 Change the webroot path accordingly and it should work.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [June 14, 2017, 11:21am UTC](https://community.letsencrypt.org/t/certbot-cannot-pass-http-01-challenge/33925/5 "2017-06-14T11:21:36Z")

</div>

Closed on June 14, 2017, 11:21am UTC

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