<< back to sysax.com Product page

12.1. Creating Key Pairs

The sysaxftp.exe console program can be used to generate a OpenPGP key pair using the -pgpkeygen option. An optional size value for the encryption key can also be specified. Valid key sizes are 1024, 2048, 4096, or 8192. If no keysize is specified, a default key size of 1024 is used. The new key pair is generated and stored in the default keyring. The username is specified using the -username option and the corresponding passphrase is specified using the -passphrase option. The username is a text string or email address that is linked with the generated key pair and is used to select the private or public key belonging to the key pair.

Exhibit 12.1. IDL Definition of method to creating key pairs


sysaxftp.exe -pgpkeygen [1024(default), 2048, 4096, or 8192] -username <username or email> -passphrase <passprase value> [-keytype <rsa(default), or dsaelg>]


Exhibit 12.2. Example usage of method to creating key pairs (VBScript)


sysaxftp.exe -pgpkeygen -username john.doe -passphrase johnspassword   #generate a RSA key pair with default size of 1024 and link it to a username

sysaxftp.exe -pgpkeygen -username john.doe -passphrase johnspassword -keytype dsaelg   #generate a DSA/Elgamal key pair with default size of 1024 and link it to a username

sysaxftp.exe -pgpkeygen 2048 -username john.doe@email.com -passphrase keypassword #generate a RSA key pair with size of 2048 and link it to an email address