1
0
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:
Seth Schoen
2012-11-19 11:09:09 -08:00
parent 05823ba2b0
commit 2acbe09ded

View File

@@ -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()