Wednesday, June 12, 2013

Step by step procedure to Encrypt ( PGP encryption) a file using Boomi ETL tool

If you want to encrypt any text file using PGP encryption in Boomi, then use the below steps to achieve your requirement:

Step 1. In the start shape read a text file from Disk, create a connection and Operation for Disk connector.



Step 2. Drag Data Process component in the canvas, just after the start shape and then select below option in Data Process component:


Step 3. Now if you want to keep the same file name in target folder as in source folder, then drag and drop the Set Properties component in the canvas after Data Process component with the below configuration.


Step 4. At the last create a Disk connector which will save the encrypted file to your local folder. 

Complete process would look like this:





Note: Initially I was getting below error message in Data Processing step:

Unable to store data, error copying stream.; Caused by: failed encrypting; Caused by: exception encrypting session key; Caused by: Illegal key size or default parameters 

If you are also receiving same error message, then I would recommend you to go through below link, it will help you to resolve this issue:

http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters

You would need to replace Local_policy.jar and US_Export_policy.jar files from your system with the 
jar files included in the JCE Policy Files. Once you successfully replace the jar files in your system, then Unlimited Strength Cryptography under your Atom become true: 

Manage->Atom Management->Select your atom from Environments section on left side of the screen-> Atom Startup Properties->Unlimited Strength Cryptography -> Should be TRUE, if False you will receive the error.


No comments:

Post a Comment