newFromFileWithPassword
fun newFromFileWithPassword(file: String, password: String): <Error class: unknown class><TlsCertificate>
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 %G_IO_ERROR_NOT_SUPPORTED. Currently only .p12
and .pfx
files are supported. See g_tls_certificate_new_from_pkcs12() for more details.
Return
the new certificate, or null on error
Since
2.72
Parameters
file
file containing a certificate to import
password
password for PKCS #12 files