Question

Reg Signing a message with RSA SHA 256 algorithm using a private Key

Hi All,

In our project, we are invoking a docusign API Service for which a JWT OAuth access token has to be generated. My requirement is that i need to sign the below message using the RSA private key with SHA256 algorithm.

RSASHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), Private Key)

How to achieve this using Pega, Do we have any OOTB activity to achieve this or a java code to be written to achieve this?

Please help me on this

Correct Answer
November 6, 2019 - 12:44am

Which version of Pega are you using? In Pega 8.x, we have OOTB means to generate JWT tokens using a combination of Token Profile and pxGenerateJWT activity. You just need to specify the signature algorithm in the Token Profile and the activity generates the JWT token accordingly.

Comments

Keep up to date on this post and subscribe to comments

November 6, 2019 - 12:44am

Which version of Pega are you using? In Pega 8.x, we have OOTB means to generate JWT tokens using a combination of Token Profile and pxGenerateJWT activity. You just need to specify the signature algorithm in the Token Profile and the activity generates the JWT token accordingly.

November 20, 2019 - 8:06pm

Thanks Praneeth