JWT Create

Generates a JWT.

Revision History

1.0.0.0 - Initial release.
1.0.1.0 - Added direct certificate selection and support for cloud execution.

Properties

Connection

Type: Connection Input
The Connection Property

Certificate
Type: X509Certificate2
The X.509 certificate, including its private key, used to sign the JWT.

Issuer

Type: String Input
The Issuer Property

Audience

Type: String Input
The Audience Property

ExpiresMinutes

Type: Int32 Input
The number of minutes before the JWT expires. The default is 1.

Claims

Type: String Input
Provides a set of claims expressed as a JSON document.

Jwt

Type: Multiline Text Output
Returns the unencoded JWT. Note that this is not a JSON document but contains two JSON documents separated by a period.

EncodedJwt

Type: Multiline Text Output
Returns the encoded JWT. This is the token that will be exchanged for an access token.

Remarks

Use this Node to generate a JWT. Select an X.509 certificate containing the public and private key in the Connection Property. The Node can run in the cloud or at a DropPoint.

Preparing a signing certificate

If you have separate public and private key files, use openssl to combine them into a PFX file that you can select in the Certificate Property.

The OpenSSL utility can be obtained from https://www.openssl.org/

Use this command to generate a PFX:

openssl pkcs12 -export -in public.crt -inkey private.key -out newcert.pfx

public.crt should look like this:

-----BEGIN CERTIFICATE-----(base64 data here)-----END CERTIFICATE-----

private.key should look like this:

-----BEGIN PRIVATE KEY-----(base64 data here)-----END PRIVATE KEY-----