wodKeys Component - PublicKeySave Method
      
 

Description

Saves public key a the file..


Return Type

None  


Syntax

object.PublicKeySave KeyType, Filename



The PublicKeySave Method syntax has these parts:

Part Description
object An expression evaluating to an object of type Keys.
KeyType Required. A SSHKeyTypes enumeration, as described in settings. Type of the key (RSA/DSA).
Filename Required. A String value. Full path to file where key should be PublicKeySaved.

Settings

The settings for KeyType are:

Constant Value Description
 RSAkey 0 Saves RSA key.
 DSAkey 1 Saves DSA key.

Remarks

PublicKeySave method will store contents of your public key from memory to file on your disk drive, in X509 PEM format.

Key is saved using PEM format, as base64 encoded data surrounded by header lines, which makes it exportable (and importable) to other SSH engines. Written file contains only plain ASCII characters.