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.
file containing a certificate to import
password for PKCS #12 files
the new certificate, or null on error
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.