Skip to main content
Signs a JWT with a private key, for later requests to use as a credential.

Input

FieldDescriptionTypeRequired
algorithmSigning algorithm. Only RS256 is supported.stringYes
claimsClaims to include in the JWT payload, such as iss, scope, and aud. iat and exp are required numbers with exp after iat, and accept now or now+<N>s|m|h tokens.objectYes
privateKeyPEM-encoded private key used to sign the token.stringYes

Output

FieldDescriptionTypeRequired
expiresInToken lifetime in seconds.numberYes
publicKeyFingerprintFingerprint of the public key matching the signing key.stringYes
tokenThe signed JWT.stringYes