mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-11 23:50:07 +01:00
16 lines
454 B
Markdown
16 lines
454 B
Markdown
|
|
# Key generation
|
||
|
|
|
||
|
|
## EC (ECDSA) - (algorigthm ES256 - ECDSA using SHA-256)
|
||
|
|
|
||
|
|
curve name: prime256v1 (secp256r1, secp384r1)
|
||
|
|
|
||
|
|
> openssl ecparam -genkey -noout -name prime256v1 | openssl pkcs8 -topk8 -nocrypt -out ec-private.pem
|
||
|
|
|
||
|
|
> openssl ec -in ec-private.pem -pubout -out ec-public-key.pem
|
||
|
|
|
||
|
|
## EdDSA - Edwards-curve Digital Signature Algorithm
|
||
|
|
|
||
|
|
(Ed25519 - EdDSA signature scheme using SHA-512 (SHA-2) and Curve25519)
|
||
|
|
|
||
|
|
> openssl genpkey -algorithm ed25519
|