TlsCertificate
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_tls_certificate_get_type ()" ) ]
[
Version ( since =
"2.28" ) ]
public class TlsCertificate :
Object
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 [iface@Gio.TlsServerConnection]).
Content:
Properties:
- public ByteArray certificate { owned get; construct; }
The DER (binary) encoded representation of the certificate.
- public string certificate_pem { owned get; construct; }
The PEM (ASCII) encoded representation of the certificate.
- public GenericArray<void*> dns_names { owned get; }
The DNS names from the certificate's Subject Alternative Names (SANs),
null if unavailable.
- public GenericArray<void*> ip_addresses { owned get; }
The IP addresses from the certificate's Subject Alternative Names (
SANs), null if unavailable.
- public TlsCertificate issuer { get; construct; }
A TlsCertificate representing the entity
that issued this certificate.
- public string issuer_name { owned get; }
The issuer from the certificate, null
if unavailable.
- public DateTime not_valid_after { owned get; }
The time at which this cert is no longer valid,
null if unavailable.
- public DateTime not_valid_before { owned get; }
The time at which this cert is considered to be valid,
null if unavailable.
- public string password { construct; }
An optional password used when constructed with
GTlsCertificate:pkcs12-data.
- public string pkcs11_uri { owned get; construct; }
A URI referencing the
PKCS #11 objects
containing an X.509 certificate and optionally a private key.
- public ByteArray pkcs12_data { construct; }
The PKCS #12 formatted data used to construct the object.
- public ByteArray private_key { owned get; construct; }
The DER (binary) encoded representation of the certificate's private
key, in either PKCS #1 format or unencrypted
PKCS #8 format. PKCS #8 format is supported since 2.32;
earlier releases only support PKCS #1.
- public string private_key_pem { owned get; construct; }
The PEM (ASCII) encoded representation of the certificate's private
key in either PKCS #1 format ("`BEGIN RSA PRIVATE KEY`")
or unencrypted PKCS #8 format ("`BEGIN PRIVATE KEY`").
- public string private_key_pkcs11_uri { owned get; construct; }
A URI referencing a
PKCS #11 object
containing a private key.
- public string subject_name { owned get; }
The subject from the cert, null if
unavailable.
Static methods:
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object