Usage.txt 770 B

123456789101112131415161718
  1. Usage
  2. Invoking the utility without arguments will print its usage message
  3. usage java -jar json-web-key-generator.jar -t keyType [options]
  4. -a arg Algorithm (optional)
  5. -c arg Key Curve, required for EC key type. Must be one of P-256,
  6. P-384, P-521
  7. -i arg Key ID (optional)
  8. -p Display public key separately
  9. -s arg Key Size in bits, required for RSA and OCT key types. Must be
  10. an integer divisible by 8
  11. -S Wrap the generated key in a KeySet
  12. -t arg Key Type, one of RSA, oct, EC
  13. -u arg Usage, one of enc, sig (optional)
  14. Example
  15. To generate a 2048-bit RSA public private key pair, with a specified key ID and use, and wrapped in a standard JWK set
  16. java -jar json-web-key-generator.jar -t RSA -s 2048 -i 1 -u sig -S