On this page
ssl.SSLSession
Prev: ssl.SSLObject | Up: ssl | Next: ssl.SSLSocket
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_connection
Ref: docs.python.org — ssl.SSLSession
Tags: #public #python3 #stdlib #ssl
Import
import ssl
from ssl import SSLSession
Signature & Overview
ssl.SSLSession()
ssl.SSLSession class.
Usage
import ssl
# Represents a resumable TLS session obtained from ssl_sock.session
assert isinstance(ssl.SSLSession, type)
Gotchas
- Cannot be instantiated directly: Pass
session=prev_sock.sessiontoctx.wrap_socket()to resume TLS sessions and save handshake round trips.
REPL Inspect
from ssl import SSLSession
help(SSLSession)
Linked from
Related notes
- tuts/python3/stdlib_module/ssl/SSLObject Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/SSLSocket 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