TlsCertificate.from_file


Description:

public TlsCertificate.from_file (string file) throws Error

Creates a TlsCertificate from the PEM-encoded data in file.

If file cannot be read or parsed, the function will return null and set throws. Otherwise, this behaves like TlsCertificate.from_pem.

Parameters:

file

file containing a PEM-encoded certificate to import

Returns:

the new certificate, or null on error