Can't make certbot access my url

My domain is a local server. Hostname provide the DNS mapping:
directoryapi.com (127.0.0.1)

I tested manually the --manual command. And I put the data accessible to the url mentioned by certbot.

For exemple:
curl http://directoryapi.com/.well-known/acme-challenge/72VLoFKcwPqv3uJlH3XNmR7We2YUfRbZ_lRDpL-k0Fw

Which produce this kind of output (The secret key asked by certoboot):
72VLoFKcwPqv3uJlH3XNmR7We2YUfRbZ_lRDpL-k0Fw.WJ8KKrOOaoHlDwcKIF8U52FG9HqvZVosR-ICFQdLM2E

But for some reason, certbot can’t access to this url. Where I can access with a simple curl directive.
ex: curl http://directoryapi.com/.well-known/acme-challenge/72VLoFKcwPqv3uJlH3XNmR7We2YUfRbZ_lRDpL-k0Fw
72VLoFKcwPqv3uJlH3XNmR7We2YUfRbZ_lRDpL-k0Fw.WJ8KKrOOaoHlDwcKIF8U52FG9HqvZVosR-ICFQdLM2E

My web server is (include version): nginx-1.13.5

The operating system my web server runs on is (include version):
Os El Capitain 10.11.6

Here the message error:
Failed authorization procedure. directoryapi.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://directoryapi.com/.well-known/acme-challenge/i-hi698fCIiQ6iPYuRJxk1Pl5xnGrfluaLcikpA9m8c: "

"

IMPORTANT NOTES:

So I have no idea why this is not working. Is this because my domain must be public and not local?

Global DNS shows:
Name: directoryapi.com
Address: 204.13.100.156
And that is where the HTTP auth challenge will go.

Are you in control of the server at 204.13.100.156 ?

Let’s Encrypt can only issue certificates for public domain names which you control. Let’s Encrypt can never issue any certificates for internal or private domain names. You can create your own self-signed certificate for these domain names.

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