On this page
ssl.CertificateError
Prev: ssl.cert_time_to_seconds | Up: ssl | Next: ssl.create_connection
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.create_connection, ssl.create_default_context
Ref: docs.python.org โ ssl.CertificateError
Tags: #public #python3 #stdlib #ssl
Import
import ssl
from ssl import CertificateError
Signature & Overview
ssl.CertificateError(...)
A certificate could not be verified.
Methods & Attributes
CertificateError.add_note(self, note, /)โ Add a note to the exceptionCertificateError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import ssl
assert issubclass(ssl.CertificateError, ssl.SSLError)
Gotchas
- Same class as
SSLCertVerificationError: Raised when a server certificate fails hostname or CA validation.
REPL Inspect
from ssl import CertificateError
help(CertificateError)
Linked from
- tuts/python3/stdlib_module/ssl
- tuts/python3/stdlib_module/ssl/AlertDescription
- tuts/python3/stdlib_module/ssl/cert_time_to_seconds
- tuts/python3/stdlib_module/ssl/create_connection
- tuts/python3/stdlib_module/ssl/create_default_context
- tuts/python3/stdlib_module/ssl/DefaultVerifyPaths
- tuts/python3/stdlib_module/ssl/DER_cert_to_PEM_cert
- tuts/python3/stdlib_module/ssl/get_default_verify_paths
- tuts/python3/stdlib_module/ssl/get_protocol_name
- tuts/python3/stdlib_module/ssl/get_server_certificate
- tuts/python3/stdlib_module/ssl/MemoryBIO
- tuts/python3/stdlib_module/ssl/namedtuple
- tuts/python3/stdlib_module/ssl/Options
- tuts/python3/stdlib_module/ssl/PEM_cert_to_DER_cert
- tuts/python3/stdlib_module/ssl/Purpose
- tuts/python3/stdlib_module/ssl/RAND_add
- tuts/python3/stdlib_module/ssl/RAND_bytes
- tuts/python3/stdlib_module/ssl/RAND_status
- tuts/python3/stdlib_module/ssl/socket
- tuts/python3/stdlib_module/ssl/socket_error
- tuts/python3/stdlib_module/ssl/SSLCertVerificationError
- tuts/python3/stdlib_module/ssl/SSLContext
- tuts/python3/stdlib_module/ssl/SSLEOFError
- tuts/python3/stdlib_module/ssl/SSLError
- tuts/python3/stdlib_module/ssl/SSLErrorNumber
- tuts/python3/stdlib_module/ssl/SSLObject
- tuts/python3/stdlib_module/ssl/SSLSession
- tuts/python3/stdlib_module/ssl/SSLSocket
- tuts/python3/stdlib_module/ssl/SSLSyscallError
- tuts/python3/stdlib_module/ssl/SSLWantReadError
- tuts/python3/stdlib_module/ssl/SSLWantWriteError
- tuts/python3/stdlib_module/ssl/SSLZeroReturnError
Related notes
- tuts/python3/stdlib_module/ssl/AlertDescription Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/cert_time_to_seconds Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/create_connection Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/create_default_context 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/DefaultVerifyPaths links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/DER_cert_to_PEM_cert links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/get_default_verify_paths links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/get_protocol_name links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/get_server_certificate links to this page; shared tags: #ssl, #stdlib