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 ( _ output As Stream, _ password As String, _ format As SshPrivateKeyFormat _ ) |
C# |
---|
public void Save( Stream output, string password, SshPrivateKeyFormat format ) |
Parameters
- output
- Type: System.IO..::..Stream
A 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.