TlsCertificate.from_file_with_password


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.72" ) ]
public TlsCertificate.from_file_with_password (string file, string password) throws Error

Creates a TlsCertificate from the data in file.

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

Any unknown file types will error with g_io_error_not_supported. Currently only `.p12` and `.pfx` files are supported. See TlsCertificate.from_pkcs12 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