Alternative TLS Backends

urllib3.contrib.anytls

Single point of resolution for the active TLS backend.

This module masks the conditional import rtls as ssl / import utls as ssl / import ssl dance that would otherwise be duplicated in every module that needs TLS. It picks the best available backend at import time following the default priority:

rtls (Rustls + AWS-LC) -> utls (BoringSSL) -> ssl (stdlib)

class urllib3.contrib.anytls.Certificate

Bases: object

get_info()
public_bytes()