Loads a private key from a certificate stored in the registry.

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

Syntax

C#
public static RSA LoadPrivateKey(
	StoreLocation location,
	string storeName,
	string certificateName
)
Visual Basic
Public Shared Function LoadPrivateKey ( _
	location As StoreLocation, _
	storeName As String, _
	certificateName As String _
) As RSA
Visual C++
public:
static RSA^ LoadPrivateKey(
	StoreLocation location, 
	String^ storeName, 
	String^ certificateName
)

Parameters

location
Type: LLCryptoLib.Security.Certificates..::..StoreLocation
The store location.
storeName
Type: System..::..String
Name of the store in registry.
certificateName
Type: System..::..String
Subject string of the certificate.

Return Value

The private key as an RSA object.

See Also