TlsCertificate.newFromFileWithPassword
gio.tls_certificate.TlsCertificate newFromFileWithPassword(string file, string password)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.
Parameters
file | file containing a certificate to import |
password | password for PKCS #12 files |
Returns
the new certificate, or null on error