cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to use private key file under the "Key Store" option of "JWT account"

SGArchitect
New Contributor II

Hi Snaplogic team-

We would like to use the snap โ€œJWT Generateโ€ for one of our pipelines.

While creating โ€œJWT accountโ€ (that will be used in the snap โ€œJWT Generateโ€), we ran into an issue.

Under โ€œJWT accountโ€ options, there is a field called โ€œKey Storeโ€. Our vendor has provided us the private key file. When we point the โ€œKey storeโ€ to the private key file, we are getting the following error:

Error:
Failed to validate account: I/O error occurred while trying to read oauthapp_intellum_private_key.txt Cause: toDerInputStream rejects tag type 45 (Reason: toDerInputStream rejects tag type 45; Resolution: Please ensure the file oauthapp_intellum_private_key.txt exists and is readable)

Refer the screenshot for more information. Could you please let us know how we could resolve this error?

JWT account -error2

Thanks
Suman

2 REPLIES 2

smudassir
Employee
Employee

You canโ€™t directly provide the private key file here. You will have to create a new keystore, add your private key into that keystore, and then use that keystore. While storing the private key, you will have to provide an alias to recognize it. That alias has to be given in the account.

See if this link helps you on getting this done: Import a private key into a Java Key Store

Thank you very much.