Gio.TlsCertificate.prototype.is_same

function is_same(cert_two: Gio.TlsCertificate): Boolean {
    // Gjs wrapper for g_tls_certificate_is_same()
}
  

Check if two Gio.TlsCertificate objects represent the same certificate. The raw DER byte data of the two certificates are checked for equality. This has the effect that two certificates may compare equal even if their Gio.TlsCertificate.issuer, Gio.TlsCertificate.private_key, or Gio.TlsCertificate.private_key_pem properties differ.

Since 2.34

cert_two

second certificate to compare

Returns

whether the same or not