TlsFileDatabase

Added in version 2.30.

class TlsFileDatabase(*args, **kwargs)

GTlsFileDatabase is implemented by TlsDatabase objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement.

Methods

class TlsFileDatabase
new(anchors: str) TlsFileDatabase

Creates a new GTlsFileDatabase which uses anchor certificate authorities in anchors to verify certificate chains.

The certificates in anchors must be PEM encoded.

Added in version 2.30.

Parameters:

anchors – filename of anchor certificate authorities.

Properties

class TlsFileDatabase
props.anchors: str

The path to a file containing PEM encoded certificate authority root anchors. The certificates in this file will be treated as root authorities for the purpose of verifying other certificates via the verify_chain() operation.

Added in version 2.30.