CertificateChain.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 CertificateChain LoadPfx(string path, string password)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path to a file. |
String | password | Encryption password. |
Returns
Type | Description |
---|---|
CertificateChain | A certificate with private key. |
LoadPfx(Byte[], String)
Loads a certificate with a private key from a PKCS#12 (PFX) array.
Declaration
public static CertificateChain 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 |
---|---|
CertificateChain | 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 CertificateChain 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 |
---|---|
CertificateChain | A certificate with private key. |
LoadPfx(Byte[], String, KeySetOptions)
Loads a certificate with a private key from a PKCS #12 (.p12/.pfx) array.
Declaration
public static CertificateChain 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 |
---|---|
CertificateChain | A certificate with private key. |