Reads encrypted private key from PEM file (BEGIN ENCRYPTED PRIVATE KEY / BEGIN RSA PRIVATE KEY).

Namespace: Limilabs.Cryptography
Assembly: Mail (in Mail.dll) Version: 3.0.12102.1426

Syntax

C#
public RSACryptoServiceProvider ReadEncryptedPrivateKey(
	string pem,
	string password
)
Visual Basic
Public Function ReadEncryptedPrivateKey ( _
	pem As String, _
	password As String _
) As RSACryptoServiceProvider
Visual C++
public:
RSACryptoServiceProvider^ ReadEncryptedPrivateKey(
	String^ pem, 
	String^ password
)

Parameters

pem
Type: System..::..String
String to read from
password
Type: System..::..String
Password.

Return Value

Certificate that was read.

See Also