TlsCertificate.newFromFileWithPassword

Creates a #GTlsCertificate from the data in file.

If file cannot be read or parsed, the function will return null and set error.

Any unknown file types will error with gio.types.IOErrorEnum.NotSupported. Currently only .p12 and .pfx files are supported. See gio.tls_certificate.TlsCertificate.newFromPkcs12 for more details.

class TlsCertificate
static
newFromFileWithPassword
(
string file
,
string password
)

Parameters

file string

file containing a certificate to import

password string

password for PKCS #12 files

Return Value

Type: gio.tls_certificate.TlsCertificate

the new certificate, or null on error