Imports the private key from certificate.

Namespace: LLCryptoLib.Crypto
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static RSA ImportPrivateKeyFromCertificate(
	string certificatePfx,
	string password
)
Visual Basic
Public Shared Function ImportPrivateKeyFromCertificate ( _
	certificatePfx As String, _
	password As String _
) As RSA
Visual C++
public:
static RSA^ ImportPrivateKeyFromCertificate(
	String^ certificatePfx, 
	String^ password
)

Parameters

certificatePfx
Type: System..::..String
The certificate PFX.
password
Type: System..::..String
The password.

Return Value

The private key as an RSA object

Exceptions

ExceptionCondition
LLCryptoLib..::..LLCryptoLibExceptionThis certificate contains no private key.

See Also