Gio.TlsCertificate.list_new_from_file

function list_new_from_file(file: String): Array(Gio.TlsCertificate) {
    // Gjs wrapper for g_tls_certificate_list_new_from_file()
}
  

Creates one or more #GTlsCertificates from the PEM-encoded data in file. If file cannot be read or parsed, the function will return null and set @error. If file does not contain any PEM-encoded certificates, this will return an empty list and not set @error.

Since 2.28

file

file containing PEM-encoded certificates to import

Returns

a GLib.List containing Gio.TlsCertificate objects. You must free the list and its contents when you are done with it.