Last active
December 27, 2022 03:13
-
-
Save bencmbrook/a52a02248aa3e9228347e94153545c78 to your computer and use it in GitHub Desktop.
How to generate JWT ES384 key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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