Skip to main content
June 24, 2025
Question

"Error reading certificates" when creating JWT token with Box createtoken() function

  • June 24, 2025
  • 2 replies
  • 0 views

Hi all,

I'm trying to create a token for my Box integration using Box plug-in createtoken() function:

privateKey and publicKey points to PEM docs containing publicKey and privateKey from box developer console / JSON config file downloaded from Box Dev Console


sub: enterprise ID


kid: publicKey ID from JSON config file


iss:client ID from JSON config file

I assume setup of my PEM files might be wrong, here are my steps:
1. Generate Public/Private key pair in developer console
2. Copied both keys to separate .txt files
3. converted them into pem files
4. uploaded to appian

are these correct?

I'd appreciate any advice,
Thanks

2 replies

harshas2775
June 25, 2025

 here is a similar thread to refer - same steps might help you resolve the error 

July 7, 2025

for anyone having similar issue - I had to create unencrypted PEM file