ConnectionError acme-v02.api.letsencrypt.org


#1

root@******:/home/marek# docker container run \

-it --rm --name certbot
-v /srv/letsencrypt/var/lib:/var/lib/letsencrypt
-v /srv/letsencrypt/etc:/etc/letsencrypt
-v /srv/nginx/html:/data/letsencrypt
certbot/certbot certonly
–cert-name ************
Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate with the ACME CA?


1: Spin up a temporary webserver (standalone)
2: Place files in webroot directory (webroot)


Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2
Plugins selected: Authenticator webroot, Installer None
Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to
cancel): ***********

An unexpected error occurred:
ConnectionError: HTTPSConnectionPool(host=‘acme-v02.api.letsencrypt.org’, port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb6cccb4cd0>: Failed to establish a new connection: [Errno -2] Name does not resolve’,))
Please see the logfiles in /var/log/letsencrypt for more details.

root@*******:/home/marek# curl https://acme-v02.api.letsencrypt.org:443/directory
{
“MammWBEAgaw”: “Adding random entries to the directory”,
“keyChange”: “https://acme-v02.api.letsencrypt.org/acme/key-change”,
“meta”: {
“caaIdentities”: [
letsencrypt.org
],
“termsOfService”: “https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf”,
“website”: “https://letsencrypt.org
},
“newAccount”: “https://acme-v02.api.letsencrypt.org/acme/new-acct”,
“newNonce”: “https://acme-v02.api.letsencrypt.org/acme/new-nonce”,
“newOrder”: “https://acme-v02.api.letsencrypt.org/acme/new-order”,
“revokeCert”: “https://acme-v02.api.letsencrypt.org/acme/revoke-cert


#2

SORY - my fault - my company DNS resolver is wierd :slight_smile:

JUST:
nano /etc/resolv.conf
nameserver 8.8.8.8

AND IT’S WORK
(google dns resolver)


#3

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