Gio.TlsFileDatabase¶
- Implementations:
None
Methods¶
class |
|
Virtual Methods¶
None
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Signals¶
None
Fields¶
None
Class Details¶
- class Gio.TlsFileDatabase¶
- Bases:
- Structure:
GTlsFileDatabase
is implemented by [class`Gio`.TlsDatabase] objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement.New in version 2.30.
- classmethod new(anchors)[source]¶
- Parameters:
anchors (
str
) – filename of anchor certificate authorities.- Raises:
- Returns:
the new
Gio.TlsFileDatabase
, orNone
on error- Return type:
Creates a new
Gio.TlsFileDatabase
which uses anchor certificate authorities in anchors to verify certificate chains.The certificates in anchors must be PEM encoded.
New in version 2.30.
Property Details¶
- Gio.TlsFileDatabase.props.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
Gio.TlsDatabase.verify_chain
() operation.New in version 2.30.