TlsCertificate.this

Creates a new #GTlsCertificate from the PEM-encoded data in @data. If @data includes both a certificate and a private key, then the returned certificate will include the private key data as well. (See the #GTlsCertificate:private-key-pem property for information about supported formats.)

If @data includes multiple certificates, only the first one will be parsed.

  1. this(GTlsCertificate* gTlsCertificate, bool ownedRef)
  2. this(string file)
  3. this(string certFile, string keyFile)
  4. this(string data, ptrdiff_t length)
    class TlsCertificate
    this
    (
    string data
    ,
    ptrdiff_t length
    )

Parameters

data string

PEM-encoded certificate data

length ptrdiff_t

the length of @data, or -1 if it's 0-terminated.

Return: the new certificate, or %NULL if @data is invalid

Throws

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

Meta

Since

2.28