Creates a new instance of the
Certificate class by opening a PFX file and retrieving the first certificate from it.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public static Certificate CreateFromPfxFile(
byte[] file,
string password,
bool exportable
) |
Visual Basic |
---|
Public Shared Function CreateFromPfxFile ( _
file As Byte(), _
password As String, _
exportable As Boolean _
) As Certificate |
Visual C++ |
---|
public:
static Certificate^ CreateFromPfxFile(
array<unsigned char>^ file,
String^ password,
bool exportable
) |
Parameters
- file
- Type: array<System..::..Byte>[]()[][]
The contents of a PFX file.
- password
- Type: System..::..String
The password used to encrypt the private key.
- exportable
- Type: System..::..Boolean
true if the private keys associated with the certificates should be marked as exportable, false otherwise.
Return Value
One of the certificates in the PFX file.
Remarks
Exceptions
See Also