Save method
Saves keys to the file.
Type
A String valueSyntax
- Basic
object.Save KeyType, Filename, [Password]
The Save(object,KeyType,Filename,Password) syntax has these parts:
object.Save KeyType
The Save(object,KeyType) syntax has these parts:
The Save(object,KeyType,Filename,Password) syntax has these parts:
object | An expression evaluating to an object of type Keys. |
KeyType | Required. A SSHKeyTypes enumeration, as described in settings. Type of the key. |
Filename | Required. A String value. Full path to file where key should be saved. |
Password | Optional. A Variant value. Secret password to protect the key. |
object.Save KeyType
The Save(object,KeyType) syntax has these parts:
object | An expression evaluating to an object of type Keys. |
KeyType | Required. A SSHKeyTypes enumeration, as described in settings. Type of the key. |
Return value | A string value, contents of the key. |
Remarks
Save method will store contents of your private key from memory to file on your disk drive.Key is saved using
Written file contains only plain ASCII characters.
If you don't specify filename, Save will return an unencrypted string with private key so you can store/save it by yourself.