-
-
Save rafpro/f3a3b71e5e7875269b827d6b5f1f199d 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