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_from_pem().

Parameters

certFile string

file containing a PEM-encoded certificate to import

keyFile string

file containing a PEM-encoded private key to import

Return: the new certificate, or %NULL on error

Throws

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

Meta

Since

2.28