Skip to content

Instantly share code, notes, and snippets.

@bencmbrook
Last active December 27, 2022 03:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bencmbrook/a52a02248aa3e9228347e94153545c78 to your computer and use it in GitHub Desktop.
Save bencmbrook/a52a02248aa3e9228347e94153545c78 to your computer and use it in GitHub Desktop.
How to generate JWT ES384 key
# ECDSA using P-384 and SHA-384 (NIST curve, part of CNSA Suite, and approved to protect "top secret" systems)
# https://apps.nsa.gov/iaarchive/library/ia-guidance/ia-solutions-for-classified/algorithm-guidance/commercial-national-security-algorithm-suite-factsheet.cfm
# https://tools.ietf.org/html/rfc7518#section-3.4
# Generate private key
openssl ecparam -name secp384r1 -genkey -noout -out jwtES384key.pem
# Generate public key
openssl ec -in jwtES384key.pem -pubout -out jwtES384pubkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment