startTLS: fall back to TCP if server certificate is not validated
This commit is contained in:
parent
fe11e66b29
commit
063a191e99
@ -85,6 +85,8 @@ class SyncClientProtocol(JSONCommandProtocol):
|
|||||||
try:
|
try:
|
||||||
if "Invalid DNS-ID" in str(reason.value):
|
if "Invalid DNS-ID" in str(reason.value):
|
||||||
self._client._serverSupportsTLS = False
|
self._client._serverSupportsTLS = False
|
||||||
|
elif "certificate verify failed" in str(reason.value):
|
||||||
|
self._client._serverSupportsTLS = False
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self._client.destroyProtocol()
|
self._client.destroyProtocol()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user