Generate a JWT with ECDSA keys
To generate a JWT signed with the ES256 algorithm and ECDSA keys using the P-256 (secp256k1) curve, you need to use openssl commands or the auth0 library .
This procedure explains how to generate a JWT with openssl commands.
A JWT consists of three parts separated by dots.
Header
Payload
Signature
Take a look at this pseudo code showing how a JWT is constructed: