Creates a new instance of the Certificate class by reading a certificate from a PEM encoded file.
A Certificate instance.
This implementation only reads certificates from PEM files. It does not read the private key from the certificate file, if one is present.
Exception Type | Condition |
---|---|
ArgumentNullException | filename if a null reference (Nothing in Visual Basic). |
IOException | An error occurs while reading from the file. |
CertificateException | An error occurs while reading the certificate from the PEM blob. |
Certificate Class | Org.Mentalis.Security.Certificates Namespace | Certificate.CreateFromPemFile Overload List