Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Failed to parse key: policy(Generate-JWT-RS256)

Hello Mate,

I am trying to generate jwt with no success...below are the details.

{
    "fault": {
        "faultstring""Failed to parse key: policy(Generate-JWT-RS256)",
        "detail": {
            "errorcode""steps.jwt.KeyParsingFailed"
        }
    }
}
 
policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GenerateJWT name="Generate-JWT-RS256" enabled="true" continueOnError="false">
<Algorithm>RS256</Algorithm>
<PrivateKey>
<Value ref="private.privatekey"/>
<Id>private_key</Id>
</PrivateKey>
<Id/>
<!-- this tells Apigee to generate a unique identifier -->
<Subject>Salesforce JWT for Oauth Token</Subject>
<!-- you can use ref= for the issuer as well -->
<Issuer ref="JWT_Issuer"/>
<Audience ref="JWT_Audience"/>
<ExpiresIn ref="JWT_ExpiresIn"/>
<AdditionalClaims>
<Claim name="prn" ref="JWT_prn"/>
</AdditionalClaims>
<OutputVariable>output-jwt</OutputVariable>
<DisplayName>Generate-JWT-RS256</DisplayName>
</GenerateJWT>
 
could you please suggest what is wrong..
Solved Solved
0 6 1,382
1 ACCEPTED SOLUTION

How to get the key in above format?

There are many options. one of them is probably right for you depending on where you are starting from.

View solution in original post

6 REPLIES 6