Skip to main content
Solved

Box Postman Advanced Collection: Errors decrypting the private key


rbarbosa Box

Hi folks,


For those of you using the Box Postman advanced collection with JWT authentication, with a recently generated private key, you might be having error when the pre-request script tries to get a new access token.


The error in question is a malformed PCKS.


The reason behind this is that Box has updated the encryption method of the private key to something not supported by the JSRSASign v10.x.


The good news is that the new version of JSRSASign (v11.x) does support it.


While we fix the collection here is a quick fix:



  • Download the JSRSASign from the CDN.

  • Go to and select the Box Advanced collection


  • Replace the content of the variable libJSRSASign with the content from the CDN link above.



    Remember to Save!!!


Your all set.


We’ll update the collection in Postman shortly.

Best answer by rbarbosa Box

The library as been updated in our public collection.


Cheers

View original
Did this topic help you find an answer to your question?

2 replies

rbarbosa Box
  • Author
  • Developer Advocate
  • 553 replies
  • Answer
  • June 25, 2024

The library as been updated in our public collection.


Cheers


rbarbosa Box
  • Author
  • Developer Advocate
  • 553 replies
  • June 29, 2024

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings