Overview
Generate and validate JSON web tokens for use in integrating and authenticating with external systems, using a JWKS registry to get public keys for token signature validation. The create token functions support encrypted private keys in either the PKCS#1 or PCKS#8 standard.
Key Features & Functionality
Hello,
I'm trying to function "createtoken" of this plugin but I've an issue in creating the token.
I have a private key like this
-----BEGIN PRIVATE KEY-----
<<MULTILINE DATA>>
-----END PRIVATE KEY-----
I have added the key in third party credentials but the I receive the error: "Appian JWTTools failed to read private key"
I tried to remove newlines but the error is the same.
Any suggestions?
Thx
Hello Was your issue resolved, i am facing the same error after the plugin deployed. Can you please provide the value that you have configured in admin console thirdparty to get the connection success?
The plug-in now supports keys in this format (PKCS#8)
@paolob005 , are you able to resolve this error.
Hi Paolo,
The problem seems to be the format of the private key. The plugin expects the private key in PKCS#1RSAPrivateKey (PEM header: BEGIN RSA PRIVATE KEY) format and you are setting it in PKCS#8PrivateKeyInfo (PEM header: BEGIN PRIVATE KEY)Please double check but I think you might be able to convert from PKCS#8 to PKCS#1: openssl rsa -in private_pkcs8.pem -out private_pkcs1.pem
Thanks, Leandro.