# GERTIFICATE - Invalid response from

**URL:** <https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963>\
**Category:** Help\
**Created:** [May 24, 2024, 2:30pm UTC](https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963 "2024-05-24T14:30:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KopBotIA](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@KopBotIA](https://community.letsencrypt.org/u/KopBotIA)\
**Post date:** [May 24, 2024, 2:30pm UTC](https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963/1 "2024-05-24T14:30:22Z")

</div>

hello, !!

I have a problem generating the certificate, today I normally access my web via port 80 with my subdomain.  
However, when trying to generate the certificate "Invalid response from mydomain"  
I have other subdomains working with certificates, only this one has a problem.

\*due to company rules, I need to change the real domain.

Errors and logs follow.

thanks

root@srv-supersrv:/etc/ssl/certs# sudo certbot --nginx -d [web.mydom.com](http://web.mydom.com)  
Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Requesting a certificate for [web.mydom.com](http://web.mydom.com)

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:  
Domain: [web.mydom.com](http://web.mydom.com)  
Type: unauthorized  
Detail: X.X.X.X: Invalid response from [http://web.mydom.com/.well-known/acme-challenge/VoGiY\_KMd-u203x6Zeh\_pr50HliW4xRBtd8gqp3O0Aw:](http://web.mydom.com/.well-known/acme-challenge/VoGiY_KMd-u203x6Zeh_pr50HliW4xRBtd8gqp3O0Aw:) 404

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](https://community.letsencrypt.org). See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

LOG:  
cat /var/log/letsencrypt/letsencrypt.log

2024-05-24 11:13:20,387:DEBUG:certbot.\_internal.error\_handler:Calling registered functions  
2024-05-24 11:13:20,387:INFO:certbot.\_internal.auth\_handler:Cleaning up challenges  
2024-05-24 11:13:21,459:DEBUG:certbot.\_internal.log:Exiting abnormally:  
Traceback (most recent call last):  
File "/usr/bin/certbot", line 33, in   
sys.exit(load\_entry\_point('certbot==2.1.0', 'console\_scripts', 'certbot')())  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/main.py", line 19, in main  
return internal\_main.main(cli\_args)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/main.py", line 1736, in main  
return config.func(config, plugins)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/main.py", line 1440, in run  
new\_lineage = \_get\_and\_save\_cert(le\_client, config, domains,  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/main.py", line 138, in \_get\_and\_save\_cert  
lineage = le\_client.obtain\_and\_enroll\_certificate(domains, certname)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/client.py", line 516, in obtain\_and\_enroll\_certificate  
cert, chain, key, \_ = self.obtain\_certificate(domains)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/client.py", line 428, in obtain\_certificate  
orderr = self.\_get\_order\_and\_authorizations(csr.data, self.config.allow\_subset\_of\_names)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/client.py", line 496, in \_get\_order\_and\_authorizations  
authzr = self.auth\_handler.handle\_authorizations(orderr, self.config, best\_effort)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File "/usr/lib/python3/dist-packages/certbot/\_internal/auth\_handler.py", line 106, in handle\_authorizations  
self.\_poll\_authorizations(authzrs, max\_retries, best\_effort)  
File "/usr/lib/python3/dist-packages/certbot/\_internal/auth\_handler.py", line 206, in \_poll\_authorizations  
raise errors.AuthorizationError('Some challenges have failed.')  
certbot.errors.AuthorizationError: Some challenges have failed.  
2024-05-24 11:13:21,460:ERROR:certbot.\_internal.log:Some challenges have failed.

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [May 24, 2024, 4:05pm UTC](https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963/2 "2024-05-24T16:05:13Z")

</div>

Since you cannot provide your domain name I assume you could not also share your nginx config. Without these there is not much we can say specifically.

The part of the log you showed is not helpful. The key info is much earlier. The entire log would be helpful.

But, I will explain what is happening and maybe that is enough for you to find what is wrong with your system.

The Certbot --nginx plugin adds temporary config into your nginx server block for this domain. It places the needed challenge token directly into your server block's config. The 404 is an HTTP "Not Found". That says when the Let's Encrypt Server made that HTTP request to your domain that your nginx said it couldn't find the challenge token.

This usually works very well. Some things that go wrong are:

1. The IP address in the error is no longer your public IP for your nginx
2. There is something incompatible in your nginx config that caused Certbot to place the challenge token in the wrong place. (this is rare)
3. You are no longer routing HTTP port 80 requests to that nginx. Maybe a router or port forwarding has gone wrong.

We normally help debug by looking at the entire log or viewing the output of `sudo nginx -T`. If you can provide these we can say more.

> [@KopBotIA](#):
>
> Certbot failed to authenticate some domains ( **authenticator: nginx** ). The Certificate Authority reported these problems:  
> Domain: [web.mydom.com](http://web.mydom.com)  
> Type: unauthorized  
> Detail: **X.X.X.X** : Invalid response from [http://web.mydom.com/.well-known/acme-challenge/VoGiY\_KMd-u203x6Zeh\_pr50HliW4xRBtd8gqp3O0Aw:](http://web.mydom.com/.well-known/acme-challenge/VoGiY_KMd-u203x6Zeh_pr50HliW4xRBtd8gqp3O0Aw:) **404**

---

<div class="post-metadata">

**Author:** ![Bruce5051](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/bruce5051/32/76576_2.png) [@Bruce5051](https://community.letsencrypt.org/u/Bruce5051)\
**Post date:** [May 24, 2024, 4:05pm UTC](https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963/3 "2024-05-24T16:05:41Z")

</div>

Hello @KopBotIA, welcome to the Let's Encrypt community. 🙂

OK; so you are not permitted to share the domain name ☹ but please fill out as much of the questionnaire as possible.

When you opened this thread in the #Help section, you should have been provided with a questionnaire. Maybe you didn't get it somehow (which is weird), or you've decided to delete it. In any case, all the answers to this questionnaire are required:

**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. [crt.sh | example.com](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:

I ran this command:

It produced this output:

My web server is (include version):

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

Thank you for assisting us in helping **YOU**!

Edit:

> [@KopBotIA](#):
>
> sudo certbot --nginx -d [web.mydom.com](http://web.mydom.com)

Also try `sudo certbot -vv --nginx -d web.mydom.com` to add more details to the logging;  
by default Certbot stores status logs in `/var/log/letsencrypt`.  
See [User Guide — Certbot 2.10.0 documentation](https://eff-certbot.readthedocs.io/en/stable/using.html#log-rotation) for details about where the log files are..

---

<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 23, 2024, 4:06pm UTC](https://community.letsencrypt.org/t/gertificate-invalid-response-from/218963/4 "2024-06-23T16:06:31Z")

</div>

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