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 ( _ input As Stream, _ password As String _ ) |
C# |
---|
public void Load( Stream input, string password ) |
Parameters
- input
- Type: System.IO..::..Stream
A stream from which to load the private key.
- password
- Type: System..::..String
Password used to encrypted the private key, or null if no password needed.