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.
file |
file containing a PEM-encoded certificate to import |
the new certificate, or null on error |