Method GetCertificate
GetCertificate(String)
Gets an X509 certificate from a PEM file.
Declaration
public static X509Certificate2 GetCertificate(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the file. |
Returns
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | Null in case of error. |
GetCertificate(Byte[])
Gets an X509 certificate from a PEM file.
Declaration
public static X509Certificate2 GetCertificate(byte[] pemFile)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pemFile | The file. |
Returns
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | Null in case of error. |