mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
the peername is actually unknown, not unspecified, in this case
This commit is contained in:
@@ -66,12 +66,11 @@ def verify_challenge(address, r, nonce, socksify=False):
|
||||
conn.socket = socksocket
|
||||
|
||||
sni_support.set_sni_ext(conn.ssl, sni_name)
|
||||
peername = "[unspecified]"
|
||||
peername = "[unknown]"
|
||||
try:
|
||||
conn.connect((address, 443))
|
||||
peername = str(conn.socket.getpeername())
|
||||
except Exception, e:
|
||||
|
||||
return False, "Connection to SSL Server failed (%s)" % str(e), peername
|
||||
|
||||
cert_chain = conn.get_peer_cert_chain()
|
||||
|
||||
Reference in New Issue
Block a user