list_new_from_file


Description:

public static List<TlsCertificate> list_new_from_file (string file) throws Error

Creates one or more TlsCertificates from the PEM-encoded data in file .

If file cannot be read or parsed, the function will return null and set throws. If file does not contain any PEM-encoded certificates, this will return an empty list and not set throws.

Parameters:

file

file containing PEM-encoded certificates to import

Returns:

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