On this page
ssl.get_protocol_name
Prev: ssl.get_default_verify_paths | Up: ssl | Next: ssl.get_server_certificate
Rel: ssl.AlertDescription, ssl.cert_time_to_seconds, ssl.CertificateError, ssl.create_connection
Ref: docs.python.org — ssl.get_protocol_name
Tags: #public #python3 #stdlib #ssl
Import
import ssl
from ssl import get_protocol_name
Signature & Overview
ssl.get_protocol_name(protocol_code)
ssl.get_protocol_name() function.
Usage
import ssl
name = ssl.get_protocol_name(ssl.PROTOCOL_TLS_CLIENT)
assert name == "PROTOCOL_TLS_CLIENT"
Gotchas
- Debugging helper: Converts numeric
PROTOCOL_*constants to their readable names.
REPL Inspect
from ssl import get_protocol_name
help(get_protocol_name)
Linked from
Related notes
- tuts/python3/stdlib_module/ssl/get_default_verify_paths Linked here; links to this page; shared tags: #ssl, #stdlib
- tuts/python3/stdlib_module/ssl/get_server_certificate 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