Gio.TlsConnection.prototype.get_peer_certificate_errors

function get_peer_certificate_errors(): Gio.TlsCertificateFlags {
    // Gjs wrapper for g_tls_connection_get_peer_certificate_errors()
}
  

Gets the errors associated with validating conn's peer's certificate, after the handshake has completed. (It is not set during the emission of Gio.TlsConnection::accept-certificate.)

Since 2.28

Returns

conn's peer's certificate errors