The PGP_ENCODE and PGP_DECODE activities allow files to be encoded to PGP format and decoded from PGP format.

The following link provides an overview of cryptography in general and PGP in particular: How PGP Works.

To get started, you can use any OpenPGP tool to create and manage for keys – for example, Gpg4win (GNU Privacy Guard for Windows).

If using Gpg4win, execute the following steps

  • Start Gpg4Win using the shortcut named Kleopatra, (or locate and start kleopatra.exe in C:\Program Files (x86)\GNU\GnuPG)

    NB: some (earlier) versions of Gpg4win may use GPA.exe instead of Kleopatra
  • Ctrl-N 'New Certificate'
  • Enter your name and click 'Forward'
  • Enter your email details and click 'Forward'
  • Create backup copy or skip and click 'Forward'
  • Enter a suitable password and click OK
  • Re-enter a suitable password and click OK

The GPA tool maintains the public and secret key collection files in the following folder.

C:\Users\XXX\AppData\Roaming\gnupg\pubring.gpg

C:\Users\XXX\AppData\Roaming\gnupg\secring.gpg

These collection files, (pubring.gpg and secring.gpg) need to be copied to the pki folder in the JSM (Java Service Manager) tree of the LANSA Composer system.  For example:

  • On an IBM i server:
    /LANSA_licpgmlib/jsm/instance/pki
  • On a Windows server:
    C:\Program Files (x86)\LANSA Composer Server\Integrator\Jsminstance\Pki

The LANSA Composer activities will use these files for locating recipient public keys for encryption and the secret (private) key for decryption.

  • No labels