Home
last modified time | relevance | path

Searched refs:CertificateError (Results 1 – 18 of 18) sorted by relevance

/external/python/setuptools/setuptools/
Dssl_support.py42 from ssl import CertificateError, match_hostname
45 from backports.ssl_match_hostname import CertificateError
48 CertificateError = None variable
51 if not CertificateError:
53 class CertificateError(ValueError): class
80 raise CertificateError(
140 raise CertificateError("hostname %r "
144 raise CertificateError("hostname %r "
148 raise CertificateError("no appropriate commonName or "
199 except CertificateError:
/external/python/cpython3/Lib/
Dssl.py188 CertificateError = SSLCertVerificationError variable
210 raise CertificateError(
217 raise CertificateError(
223 raise CertificateError(
229 raise CertificateError(
321 raise CertificateError("hostname %r "
325 raise CertificateError("hostname %r "
329 raise CertificateError("no appropriate commonName or "
/external/python/cpython2/Lib/
Dssl.py200 class CertificateError(ValueError): class
223 raise CertificateError(
286 raise CertificateError("hostname %r "
290 raise CertificateError("hostname %r "
294 raise CertificateError("no appropriate commonName or "
/external/python/cpython3/Lib/asyncio/
Dsslproto.py216 except (ssl.SSLError, ssl.CertificateError) as exc:
629 if isinstance(exc, ssl.CertificateError):
/external/python/cpython3/Lib/test/
Dtest_imaplib.py511 with self.assertRaisesRegex(ssl.CertificateError,
901 ssl.CertificateError,
Dtest_ssl.py589 self.assertRaises(ssl.CertificateError,
738 ssl.CertificateError,
744 ssl.CertificateError,
750 ssl.CertificateError,
756 ssl.CertificateError,
762 ssl.CertificateError,
2843 ssl.CertificateError,
2955 with self.assertRaises(ssl.CertificateError):
Dtest_ftplib.py956 with self.assertRaises(ssl.CertificateError):
962 with self.assertRaises(ssl.CertificateError):
Dtest_poplib.py375 with self.assertRaises(ssl.CertificateError):
Dtest_httplib.py1677 with self.assertRaises(ssl.CertificateError):
1683 with self.assertRaises(ssl.CertificateError):
1709 with self.assertRaises(ssl.CertificateError):
/external/python/cpython2/Lib/test/
Dtest_ftplib.py755 with self.assertRaises(ssl.CertificateError):
761 with self.assertRaises(ssl.CertificateError):
Dtest_urllib2_localnet.py561 with self.assertRaises(ssl.CertificateError):
Dtest_httplib.py915 with self.assertRaises(ssl.CertificateError):
Dtest_ssl.py410 self.assertRaises(ssl.CertificateError,
535 with self.assertRaises(ssl.CertificateError) as cm:
2195 with self.assertRaisesRegexp(ssl.CertificateError,
/external/python/httplib2/
DCHANGELOG71 Fix certificate validation on Python<=2.7.8 without ssl.CertificateError
/external/python/httplib2/python3/httplib2/
D__init__.py1322 except (ssl.SSLError, ssl.CertificateError) as e:
/external/python/cpython2/Doc/library/
Dssl.rst130 .. exception:: CertificateError
390 :exc:`CertificateError` is raised on failure. On success, the function
399 ssl.CertificateError: hostname 'example.org' doesn't match 'example.com'
/external/python/cpython3/Doc/library/
Dssl.rst264 .. exception:: CertificateError
359 :exc:`CertificateError` is raised on failure. On success, the function
368 ssl.CertificateError: hostname 'example.org' doesn't match 'example.com'
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_events.py1175 ssl.CertificateError,