Gio.TlsCertificate.new_from_files
function new_from_files(cert_file: String, key_file: String): Gio.TlsCertificate {
// Gjs wrapper for g_tls_certificate_new_from_files()
}
Creates a Gio.TlsCertificate from the PEM-encoded data in cert_file and key_file. If either file cannot be read or parsed, the function will return null and set @error. Otherwise, this behaves like Gio.TlsCertificate.new_from_pem.
Since 2.28
- cert_file
file containing a PEM-encoded certificate to import
- key_file
file containing a PEM-encoded private key to import
- Returns
the new certificate, or null on error