Certificate.LoadDerWithKey Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9083)
LoadDerWithKey(String, String, String)
Loads a DER encoded certificate and a private key (in PKCS #8, PuTTY or SSLeay format) from the specified files.
Declaration
public static Certificate LoadDerWithKey(string certificatePath, string privateKeyPath, string privateKeyPassword)
Parameters
Type | Name | Description |
---|---|---|
String | certificatePath | Path to a certificate file. |
String | privateKeyPath | Path to the private key file. |
String | privateKeyPassword | Private key password. |
Returns
Type | Description |
---|---|
Certificate | A certificate. |
LoadDerWithKey(Stream, Stream, String)
Loads a DER encoded certificate and a private key (in PKCS #8, PuTTY or SSLeay format) from the specified streams.
Declaration
public static Certificate LoadDerWithKey(Stream certificateStream, Stream privateKeyStream, string privateKeyPassword)
Parameters
Type | Name | Description |
---|---|---|
Stream | certificateStream | Stream with the certificate. |
Stream | privateKeyStream | Stream with the private key. |
String | privateKeyPassword | Private key password. |
Returns
Type | Description |
---|---|
Certificate | A certificate. |