Skip to content

Instantly share code, notes, and snippets.

@rafpro
Forked from bencmbrook/jwtES384.sh
Created December 27, 2022 03:13
Show Gist options
  • Save rafpro/f3a3b71e5e7875269b827d6b5f1f199d to your computer and use it in GitHub Desktop.
Save rafpro/f3a3b71e5e7875269b827d6b5f1f199d 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