Loads a PKCS #8 or SSLeay-format RSA or DSA private key from the specified path.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ path As String, _ password As String _ ) |
C# |
---|
public SshPrivateKey( string path, string password ) |
Parameters
- path
- Type: System..::..String
A path to the private key.
- password
- Type: System..::..String
Password used to encrypted the private key, or null if no password needed.