I am working on ServiceNow - BOX integration using rest API. for generating access tokens, I need to generate a JWT.
I need to have a private key to sign that JWT.
They have provided the private key but it is in an encrypted format.
-----BEGIN ENCRYPTED PRIVATE KEY-----
*******Key here**********
-----END ENCRYPTED PRIVATE KEY-----
I have also been provided with a pass code to decrypt it.
I am not sure how to decrypt above private key in ServiceNow.
They gave examples in other languages here: https://developer.box.com/docs/construct-jwt-claim-manually#section-2-decrypt-private-key
禁用请帮助我在纯JavaScript实现中完成此操作。
谢谢
阿里