Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.

Namespace:  Rebex.Security.Cryptography.Pkcs
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Sub Load ( _
	fileName As String, _
	password As String _
)
C#
public void Load(
	string fileName,
	string password
)

Parameters

fileName
Type: System..::..String
A file from which to load the private key.
password
Type: System..::..String
Password used to encrypted the private key, or null if no password needed.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also