Skip to main content

oathkeeper credentials generate

oathkeeper credentials generate​

Generate a key for the specified algorithm

Synopsis​

Examples:

$ oathkeeper credentials generate --alg ES256 > jwks.json $ oathkeeper credentials generate --alg RS256 > jwks.json $ oathkeeper credentials generate --alg RS256 --bits 4096 > jwks.json

oathkeeper credentials generate [flags]

Options​

      --alg string   Generate a key to be used for one of the following algorithms: [HS256 HS384 HS512 ES256 ES384 ES512 EdDSA RS256 RS384 RS512 PS256 PS384 PS512]
--bits int The key size in bits. If left empty will default to a secure value for the selected algorithm.
-h, --help help for generate
--kid string The JSON Web Key ID (kid) to be used. A random value will be used if left empty.

Options inherited from parent commands​

  -c, --config string   Path to config file. Supports .json, .yaml, .yml, .toml. Default is "$HOME/.oathkeeper.(yaml|yml|toml|json)"

SEE ALSO​