Gio.TlsConnection.prototype.set_database
function set_database(database: Gio.TlsDatabase): void {
// Gjs wrapper for g_tls_connection_set_database()
}
Sets the certificate database that is used to verify peer certificates. This is set to the default database by default. See Gio.TlsBackend.prototype.get_default_database. If set to null, then peer certificate validation will always set the Gio.TlsCertificateFlags.unknown_ca error (meaning Gio.TlsConnection::accept-certificate will always be emitted on client-side connections, unless that bit is not set in Gio.TlsClientConnection-validation-flags).
Since 2.30
- database