Gio.TlsCertificate

const Gio = imports.gi.Gio;

let tlsCertificate = new Gio.TlsCertificate({
    certificate: value,
    certificate_pem: value,
    issuer: value,
    private_key: value,
    private_key_pem: value,
});
  

A certificate used for TLS authentication and encryption. This can represent either a certificate only (eg, the certificate received by a client from a server), or the combination of a certificate and a private key (which is needed when acting as a Gio.TlsServerConnection).

Since 2.28

Hierarchy

  • GObject.Object
    • Gio.TlsCertificate