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
- classmethod new(anchors: str) TlsFileDatabase#
Creates a new
GTlsFileDatabasewhich uses anchor certificate authorities inanchorsto verify certificate chains.The certificates in
anchorsmust 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.