cancel
Showing results for 
Search instead for 
Did you mean: 

Function for Bouncy Castle - PGP Utility - 1.0.0

AshokChelladura
Level 3
Hi All,

Have any of you integrated the Bouncy castle PGP utility from digital exchange? Followed the exact same steps per the guide but still facing an issue during integration( Could not execute code stage because exception thrown by code stage : Object reference not set to an instance of an object). Not sure if I am missing any references here. Any help would be very much appreciated. Thanks!

------------------------------
Ashok Chelladurai
Vice president
State Street
America/New_York
------------------------------
7 REPLIES 7

ewilson
Staff
Staff
Hello @Ashok Chelladurai,

Couple questions.
  • Did you download a copy of the BouncyCastle v1.8.10 DLL and place it in the Blue Prism Automate folder?
  • What version of Blue Prism are you using?
  • Are you experiencing the error on Encrypt, Decrypt, or both?

Cheers,


------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @Ashok Chelladurai,

I think I know what might be going on. There are some exception handlers within the code that try to create a response message using the main exception message as well as an inner exception message. However, if there's no inner exception object you'll get the error you're seeing. My guess is, the encryption key you're using isn't what the VBO/BouncyCastle expects. As such, it's running into this exception handling which is actually failing.

I'll let the developer know about the exception handling so they can update the VBO. What sort of public/private key are you using? Is it something you generated yourself?

Cheers,​

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Ashok,

I updated the Bouncy Castle PGP Utility to v1.1.0. If you download and import this updated version, it should give you a more meaningful error message.

https://digitalexchange.blueprism.com/dx/entry/9648/solution/bouncy-castle---pgp-utility

Regards,
Charlie

------------------------------
Charlie Kovacs
Sr. Digital Exchange Engineer
Blue Prism
Austin, USA
------------------------------
Charlie Kovacs

Thank you Eric, I will test the latest one and provide an update.

------------------------------
Ashok Chelladurai
Vice president
State Street
America/New_York
------------------------------

Thank you Charles, Let me test this one. 

Just FYI, I am testing with GPG open standard and I believe that is supported by bouncy castle.

------------------------------
Ashok Chelladurai
Vice president
State Street
America/New_York
------------------------------

Hi Charles

The utility is working as expected. May i know what was the issue earlier?

Regards
Ashok

------------------------------
Ashok Chelladurai
Vice president
State Street
America/New_York
------------------------------

Hi Ashok,

I am glad to hear the utility is working for you now. The difference between v1.0.0 and v1.1.0 is the exception handling as Eric described. V1.1.0 now includes checks to see if an Exception object contains a non-null InnerException before trying to use it in creating the error message.

Otherwise, the core behavior of the utility remains unchanged.

------------------------------
Charlie Kovacs
Sr. Digital Exchange Engineer
Blue Prism
Austin, USA
------------------------------
Charlie Kovacs