:right-sidebar: True TlsFileDatabase =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.30 .. class:: TlsFileDatabase(*args, **kwargs) :no-contents-entry: ``GTlsFileDatabase`` is implemented by :obj:`~gi.repository.Gio.TlsDatabase` objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement. Methods ------- .. rst-class:: interim-class .. class:: TlsFileDatabase :no-index: .. method:: new(anchors: str) -> ~gi.repository.Gio.TlsFileDatabase Creates a new ``GTlsFileDatabase`` which uses anchor certificate authorities in ``anchors`` to verify certificate chains. The certificates in ``anchors`` must be PEM encoded. .. versionadded:: 2.30 :param anchors: filename of anchor certificate authorities. Properties ---------- .. rst-class:: interim-class .. class:: TlsFileDatabase :no-index: .. attribute:: props.anchors :type: 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 :func:`~gi.repository.Gio.TlsDatabase.verify_chain` operation. .. versionadded:: 2.30