PGP Encryption and Decryption in CPI
Install the Kleopatra application from the below URL
https://www.gpg4win.org/download.html
Application file will be downloaded as below.
Click on NEXT
Once installation is complete, open the application. Click on New Key Pair
Provide some unique name and email address. Keep key material as rsa2048.
Uncheck valid until option if you don’t want keys to expire
Provide a Passphrase (Only If you require)
Keys gets generated.
Now we need to export both Public, private key
Click on export on top to export public key
Right click on it and click on backup secret keys to download private key.
Provide passphrase while downloading private key.
Now we need to import the public and private key into CPI.
Go to Manage PGP keys in Monitor
While importing private key provide passphrase which as added while creating in above
steps
Both keys are added into CPI.
Let’s use the imported keys in Iflow to encrypt and decrypt the data.
In the below example we have used both encryptor and decryptor.
Configuration for PGP Encryptor, Use the key name which is imported in CPI.
Configuration for PGP Decryptor
Source Messsage:
After encryption:
After decryption: