Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

SshPrivateKey.Save Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

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.

In This Article
  • Save(Stream, String, SshPrivateKeyFormat)
  • Save(String, String, SshPrivateKeyFormat)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies