TlsCertificate.this

Creates a GTlsCertificate from the PEM-encoded data in cert_file and key_file. If either file cannot be read or parsed, the function will return NULL and set error. Otherwise, this behaves like g_tls_certificate_new(). Since 2.28

  1. this(GTlsCertificate* gTlsCertificate)
  2. this(string data)
  3. this(string certFile, string keyFile)
    class TlsCertificate
    this
    (
    string certFile
    ,
    string keyFile
    )

Parameters

certFile string

file containing a PEM-encoded certificate to import

keyFile string

file containing a PEM-encoded private key to import

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta