Gio.TlsConnection.prototype.get_certificate

function get_certificate(): Gio.TlsCertificate {
    // Gjs wrapper for g_tls_connection_get_certificate()
}
  

Gets conn's certificate, as set by Gio.TlsConnection.prototype.set_certificate.

Since 2.28

Returns

conn's certificate, or null