Certificate.LoadPfx Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9119)
LoadPfx(String, String)
Loads a certificate with a private key from a PKCS#12 (PFX) file.
Declaration
public static Certificate LoadPfx(string path, string password)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path to a file. |
String | password | Encryption password. |
Returns
Type | Description |
---|---|
Certificate | A certificate with private key. |
LoadPfx(Byte[], String)
Loads a certificate with a private key from a PKCS#12 (PFX) array.
Declaration
public static Certificate LoadPfx(byte[] data, string password)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | An array containing DER encoded PKCS#12 data. |
String | password | Encryption password. |
Returns
Type | Description |
---|---|
Certificate | A certificate with private key. |
LoadPfx(String, String, KeySetOptions)
Loads a certificate with a private key from a PKCS#12 (PFX) file.
Declaration
public static Certificate LoadPfx(string path, string password, KeySetOptions options)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path to a file. |
String | password | Encryption password. |
KeySetOptions | options | Key set options. |
Returns
Type | Description |
---|---|
Certificate | A certificate with private key. |
LoadPfx(Byte[], String, KeySetOptions)
Loads a certificate with a private key from a PKCS#12 (PFX) array.
Declaration
public static Certificate LoadPfx(byte[] data, string password, KeySetOptions options)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | An array containing DER encoded PKCS#12 data. |
String | password | Encryption password. |
KeySetOptions | options | Key set options. |
Returns
Type | Description |
---|---|
Certificate | A certificate with private key. |