JAMS Developer Guide
SavePrivateKey(String,String,SshPrivateKeyFormat) Method


MVPSI.JAMS Namespace > Credential Class > SavePrivateKey Method : SavePrivateKey(String,String,SshPrivateKeyFormat) Method
The path to the file to be written.
A password which will be used to encrypt the key.
The desired output format for the key. Options include OpenSsh, PKCS8 and Putty.
Saves the public/private key pair to a file.
Syntax
'Declaration
 
Public Overloads Sub SavePrivateKey( _
   ByVal filePath As System.String, _
   ByVal password As System.String, _
   ByVal format As SshPrivateKeyFormat _
) 
'Usage
 
Dim instance As Credential
Dim filePath As System.String
Dim password As System.String
Dim format As SshPrivateKeyFormat
 
instance.SavePrivateKey(filePath, password, format)
public void SavePrivateKey( 
   System.string filePath,
   System.string password,
   SshPrivateKeyFormat format
)

Parameters

filePath
The path to the file to be written.
password
A password which will be used to encrypt the key.
format
The desired output format for the key. Options include OpenSsh, PKCS8 and Putty.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Credential Class
Credential Members
Overload List