How to decrypt PKCS#8 encrpyted private key in javascript

时间:2018-11-30 06:00:53

标签: javascript servicenow

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实现中完成此操作。

谢谢

阿里

0 个答案:

没有答案