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:
-
The following errors were reported by the server:
Domain: directoryapi.com
"
Type: unauthorized
Detail: Invalid response from
http://directoryapi.com/.well-known/acme-challenge/i-hi698fCIiQ6iPYuRJxk1Pl5xnGrfluaLcikpA9m8c:
"
So I have no idea why this is not working. Is this because my domain must be public and not local?