TlsCertificate.this

Creates a #GTlsCertificate from the PEM-encoded data in @file. If @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

file string

file containing a PEM-encoded certificate 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