On this page
ssl.SSLCertVerificationError
Prev: ssl.socket_error | Up: ssl | Next: ssl.SSLContext
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_connection
Ref: docs.python.org โ ssl.SSLCertVerificationError
Tags: #public #python3 #stdlib #ssl
Import
import ssl
from ssl import SSLCertVerificationError
Signature & Overview
ssl.SSLCertVerificationError(...)
A certificate could not be verified.
Methods & Attributes
SSLCertVerificationError.add_note(self, note, /)โ Add a note to the exceptionSSLCertVerificationError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import ssl
assert issubclass(ssl.SSLCertVerificationError, ssl.SSLError)
Gotchas
- Never silence by setting
CERT_NONEin production: Inspectexc.verify_codeandexc.verify_message, or supply the missing CA bundle viacafile=/certifi.
REPL Inspect
from ssl import SSLCertVerificationError
help(SSLCertVerificationError)
Linked from
Related notes
- tuts/python3/stdlib_module/ssl/socket_error Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/SSLContext Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ssl/AlertDescription Linked here; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/cert_time_to_seconds Linked here; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/CertificateError Linked here; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/create_connection Linked here; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/create_default_context shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/DefaultVerifyPaths shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/DER_cert_to_PEM_cert shared tags: #ssl, #stdlib