Saves the private key into the supplied stream in the specified format.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Sub Save ( _ path As String, _ password As String, _ format As SshPrivateKeyFormat _ ) |
C# |
---|
public void Save( string path, string password, SshPrivateKeyFormat format ) |
Parameters
- path
- Type: System..::..String
A path to stream to which to save the private key.
- password
- Type: System..::..String
Password to encrypted the private key, or null if no encryption desired.
- format
- Type: Rebex.Net..::..SshPrivateKeyFormat
Private key file format.