# Certbot gets 404 Not Found when trying to verify

**URL:** <https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201>\
**Category:** Help\
**Created:** [January 22, 2017, 5:09pm UTC](https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201 "2017-01-22T17:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertoMC](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@RobertoMC](https://community.letsencrypt.org/u/RobertoMC)\
**Post date:** [January 22, 2017, 5:09pm UTC](https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201/1 "2017-01-22T17:09:48Z")

</div>

Please fill out the fields below so we can help you better.

I ran this command ([domain.com](http://domain.com) and username were replaced):  
/root/certbot-auto certonly --webroot -w /home/username/public\_html -d [www.domain.com](http://www.domain.com) -d [domain.com](http://domain.com)

It produced this output:  
The client lacks sufficient authorization :: Invalid response from [http://www.domain.com/.well-known/acme-challenge/5W1ceYO\_tlwxt4QNcGasdf234324](http://www.domain.com/.well-known/acme-challenge/5W1ceYO_tlwxt4QNcGasdf234324)

There is no .htaccess file

My operating system is (include version):  
CentOS release 6.8 (Final)

My web server is (include version):  
Server version: Apache/2.2.31 (Unix)

My hosting provider, if applicable, is:  
NA

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):  
NA

A test file in acme-challenge works OK:

# curl -i [domain.com/.well-known/acme-challenge/testfile](http://domain.com/.well-known/acme-challenge/testfile)

HTTP/1.1 200 OK  
Date: Sun, 22 Jan 2017 17:08:55 GMT  
Server: Apache  
Last-Modified: Sun, 22 Jan 2017 17:08:19 GMT  
Accept-Ranges: bytes  
Content-Length: 20  
Connection: close  
Content-Type: text/plain

This is a test file

---

<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:** [January 22, 2017, 5:19pm UTC](https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201/2 "2017-01-22T17:19:12Z")

</div>

The error probably had more text than you’re showing us now, correct? I.e., 404, 403 or something like that.

---

<div class="post-metadata">

**Author:** ![RobertoMC](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@RobertoMC](https://community.letsencrypt.org/u/RobertoMC)\
**Post date:** [January 22, 2017, 5:40pm UTC](https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201/3 "2017-01-22T17:40:16Z")

</div>

Here is the whole thing:  
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/ **init**.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6  
DeprecationWarning  
Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Obtaining a new certificate  
Performing the following challenges:  
http-01 challenge for [www.mydomain.com](http://www.mydomain.com)  
http-01 challenge for [mydomain.com](http://mydomain.com)  
Using the webroot path /home/username/public\_html for all unmatched domains.  
Waiting for verification…  
Cleaning up challenges  
Unable to clean up challenge directory /home/username/public\_html/.well-known/acme-challenge  
Failed authorization procedure. [www.mydomain.com](http://www.mydomain.com) (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [http://www.mydomain.com/.well-known/acme-challenge/79El54TRfx5O1hLQBp8w7SYJIx3wTL-I\_2ADNXcGM:](http://www.mydomain.com/.well-known/acme-challenge/79El54TRfx5O1hLQBp8w7SYJIx3wTL-I_2ADNXcGM:) "

404 Not Found
# Not Found
\<p", mydomain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mydomain.com/.well-known/acme-challenge/oNsANFJAoqlPt3BEDorT\_ft9OZYf7jlXU: " 404 Not Found
# Not Found
\<p"

IMPORTANT NOTES:

- The following errors were reported by the server:

---

<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:** [February 21, 2017, 5:54pm UTC](https://community.letsencrypt.org/t/certbot-gets-404-not-found-when-trying-to-verify/26201/4 "2017-02-21T17:54:46Z")

</div>

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