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 ReadEncryptedPrivateKeyFromFile(
	string filename,
	string password
)
Visual Basic
Public Function ReadEncryptedPrivateKeyFromFile ( _
	filename As String, _
	password As String _
) As RSACryptoServiceProvider
Visual C++
public:
RSACryptoServiceProvider^ ReadEncryptedPrivateKeyFromFile(
	String^ filename, 
	String^ password
)

Parameters

filename
Type: System..::..String
File to read from
password
Type: System..::..String
Password.

Return Value

Certificate that was read.

See Also