blob: 36990e8512928e4a97161cfa88bcfaf0298eb493 [file] [log] [blame]
Josh King56569c72016-10-31 11:09:24 -05001--- a/gevent/ssl.py 2016-11-02 13:17:37.917401795 -0500
2+++ b/gevent/newssl.py 2016-11-02 13:17:23.085401962 -0500
3@@ -334,6 +334,8 @@ class SSLSocket(socket):
4 raise
5 sys.exc_clear()
6 self._wait(self._write_event, timeout_exc=_SSLErrorHandshakeTimeout)
7+ elif ex.reason in ['SSLV3_ALERT_CERTIFICATE_EXPIRED', 'TLSV1_ALERT_UNKNOWN_CA']:
8+ return None
9 else:
10 raise
11
12 def connect(self, addr):
13 """Connects to remote ADDR, and then wraps the connection in