Gio.TlsFileDatabase¶
interface
GTlsFileDatabase is implemented by TlsDatabase objects which
load their certificate information from a file. It is an interface which
TLS library specific subtypes implement.
Static functions¶
new¶
@staticmethod
def new(anchors: str | bytes | os.PathLike[str] | os.PathLike[bytes]) -> TlsFileDatabase
Creates a new TlsFileDatabase which uses anchor certificate authorities
in anchors to verify certificate chains.
The certificates in anchors must be PEM encoded.
Parameters:
anchors— filename of anchor certificate authorities.
Properties¶
anchors¶
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 TlsDatabase.verify_chain operation.