PGPIMPORT        Import a PGP key

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands >

PGPIMPORT        Import a PGP key

Syntax:

PGPIMPORT

[ key file ] [ keyring ]

Arguments:

[ key file ]

A variable or string defining the file name of an exported key to import.

 

[ keyring ]

Optional variable or string defining the location of an alternate GPG style keyring to import into. This option is deprecated and may be removed in a future version.

Options:

/delete

Delete the key file after successful import

 

 

This script command imports a PGP key file (*.gpg; *.pgp; *.asc) or keyring file (*.pkr; *.skr; *.pubkr) exported from Robo-FTP or from another PGP encryption package.

 

The following example imports a key present in Robo-FTP’s working folder.

 

PGPIMPORT "export_key.pgp"

 

The following example imports a key into a keyring present in the specified folder.

 

PGPIMPORT "export_key.pgp" "c:\gnupg"

 

Importing using wildcards

The PGPIMPORT command supports using wildcards to specify the key file. This can be used, for example, to automatically import all keys in a particular directory.

 

** Import all key files that end in ".pgp" and delete the files after successful import

PGPIMPORT "*.pgp" /delete

 

PGP key files may also be both imported and exported using the Configurator.  It is important to backup your PGP keys whenever you import a new one.

 

 

Related command(s): PGPDECRYPT, PGPENCRYPT, BROWSE

See also: Robo-FTP and PGP Cryptography, Configure PGP Menu