SshPrivateKey.Save Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
Save(Stream, String, SshPrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Declaration
public void Save(Stream output, string password, SshPrivateKeyFormat format)
Parameters
Type | Name | Description |
---|---|---|
Stream | output | A stream to which to save the private key. |
String | password | Password to encrypted the private key, or null if no encryption desired. |
SshPrivateKeyFormat | format | Private key file format. |
Save(String, String, SshPrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Declaration
public void Save(string path, string password, SshPrivateKeyFormat format)
Parameters
Type | Name | Description |
---|---|---|
String | path | A path to stream to which to save the private key. |
String | password | Password to encrypted the private key, or null if no encryption desired. |
SshPrivateKeyFormat | format | Private key file format. |