From within the Project Designer page, expand the File Encryption folder in the Component Library, and then drag the PGP Encrypt task to the Project Outline.
On the PGP Encrypt Task Basic tab, specify the following:
Select the Key Ring (OpenPGP Key Ring Resource) that contains the OpenPGP keys.
For the Input Files Variable attribute, specify the file list variable that contains a list of files to encrypt and sign.
For the Output Directory attribute, specify the directory to place the encrypted files. Leave this field blank to create the encrypted file in the same directory as the input file.
To add a public key to encrypt the file with, click the
Add
button and choose
Add a Public Key
option from the menu.
This will display the page titled "Public Key".
Repeat step 3 if you need to encrypt the file using multiple public keys.
To additionally sign the file (this is only needed if your trading partner requires
digital signatures), select the PGP Encrypt task by clicking it in the project outline.
Click the
Add
button and choose Add a Secret Key from the context menu.
This will display a page titled "Secret Key".
Click the
button (next to the Key ID) to open the “PGP Key Chooser” and select the private key.
Specify a passphrase for your private key. This is the passphrase you used when you first created your key pair.