mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 04:22:08 +08:00
ui optimize
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
Usage
|
||||
Invoking the utility without arguments will print its usage message
|
||||
|
||||
usage java -jar json-web-key-generator.jar -t keyType [options]
|
||||
-a arg Algorithm (optional)
|
||||
-c arg Key Curve, required for EC key type. Must be one of P-256,
|
||||
P-384, P-521
|
||||
-i arg Key ID (optional)
|
||||
-p Display public key separately
|
||||
-s arg Key Size in bits, required for RSA and OCT key types. Must be
|
||||
an integer divisible by 8
|
||||
-S Wrap the generated key in a KeySet
|
||||
-t arg Key Type, one of RSA, oct, EC
|
||||
-u arg Usage, one of enc, sig (optional)
|
||||
Example
|
||||
To generate a 2048-bit RSA public private key pair, with a specified key ID and use, and wrapped in a standard JWK set
|
||||
|
||||
java -jar json-web-key-generator.jar -t RSA -s 2048 -i 1 -u sig -S
|
||||
@@ -1,2 +0,0 @@
|
||||
java -jar json-web-key-generator.jar -a RS256 -t RSA -s 2048 -i maxkey_rsa -u sig -S >maxkey.jwks
|
||||
pause
|
||||
Binary file not shown.
@@ -1,14 +0,0 @@
|
||||
Full key:
|
||||
{
|
||||
"keys": [
|
||||
{
|
||||
"kty": "RSA",
|
||||
"d": "K2VCm_6enq5uoFLZXUlWkgbCXj5m9X5uUX3_Ol3qcY9X1cP04TN98R8lpw-ASeFDRFRhe0FT-lYCYu_fqZcrNXVhyN3rgi27af5x4HdFMnHLTLMPvE6aEyTGmZjTF1AbiX5VOJAl6POI9FiyTbV1Uqt943ydJv8SH4NfcYhKBmpp8Fi1f58mon-bYwsIy8mzZjssc8KZy-GzpscKrc5ewb7106JY3uRQNprAHrpcGAPZ8uXUvVhrxp_FNn5Nf5KVxl2tm50L83_5nw0OZrbJ8Ceg7sZAw_Z41lbYbS9VDaST6TuKRb7W4XCKimZUn57LoQT2-Gkv6msJHCmqTgK02Q",
|
||||
"e": "AQAB",
|
||||
"use": "sig",
|
||||
"kid": "maxkey_rsa",
|
||||
"alg": "RS256",
|
||||
"n": "vyfZwQuBLNvJDhmziUCFuAfIv-bC6ivodcR6PfanTt8XLd6G63Yx10YChAdsDACjoLz1tEU56WPp_ee_vcTSsEZT3ouWJYghuGI2j4XclXlEj0S7DzdpcBBpI4n5dr8K3iKY-3JUMZR1AMBHI50UaMST9ZTZJAjUPIYxkhRdca5lWBo4wGUh1yj_80-Bq6al0ia9S5NTzNLaJ18jSxFqZ79BAkBm-KjkP248YUk6WBGtYEAV5Fws4dpse4hrqJ3RRHiMZV1o1iTmPHz_l55ZSDP3vpYf6iKqKzoK2RmdjfH5mGpbc4-PclTs4GKfwZ7cWfrny6B7sMnQfzujCH996Q"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user