- Pushparaj Viswanathan
- PowerBuilder
- Thursday, 2 May 2019 10:42 AM UTC
Hi All,
I am trying to create JWT using PowerBuilder, using CrypterObject Object when I am doing the Encryption, Decryption and Sign using public and private keys which are generated using AsymmetricGenerateKey is working fine. Whereas my requirement is to use these keys provided by other party. When I tried to do this I am able to encrypt using the public key whereas Decrypt and Sign are throwing the error "Invalid 'privKey' in AsymmetricDecrypt." I have tried with creating both Async and Sync type keys with RSA 1025 algorithm. Following is the sample URL to generate keys.
URL to generate sample Keys:
http://travistidwell.com/jsencrypt/demo/
Following Demo PB App I used for this and I just replaced the Public and Private Keys taken from above URL.
Can someone please help me on this issue. Please let me know if more details needed on this.
Thanks,
Pushparaj
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.