Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Sign the JWT with KID and Private Key

Sivateja
New Contributor
New Contributor

Hi Team,

Could someone help me in signing the JWT? I have Key ID and Private Key with me.

Regards,

Sivateja

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Online Tool: jwt.io

If you prefer to use an online tool, you can use jwt.io to manually create and sign your JWT.

  1. Open jwt.io: Go to jwt.io.

  2. Header: Enter the header in the "Decoded" section. It will typically look like this:

    json
    {
    "alg": "RS256", "typ": "JWT", "kid": "YOUR_KEY_ID" }
  3. Payload: Enter your payload. For example:

    json
    { "sub": "subject", "iss": "issuer", "exp": 1609459200 // Unix timestamp for expiration }
  4. Signature: Paste your private key into the "Verify Signature" section. Make sure to remove the -----BEGIN PRIVATE KEY----- and -----END PRIVATE KEY----- lines and any whitespace.

  5. Copy JWT: The signed JWT will be generated in the "Encoded" section at the top. You can copy it from there.

Make sure to replace placeholders like YOUR_KEY_ID, subject, issuer, and path/to/your/private-key.pem with your actual values and paths.


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.