Skip to main content

hydra get jwk

hydra get jwk

Get one or more JSON Web Key Set by its ID(s)

Synopsis

This command gets all the details about a JSON Web Key Set. You can use this command in combination with jq.

hydra get jwk set-1 [set-2] ... [flags]

Examples

To get the key ID of a set that holds one key, run:

hydra get jwk <set-id> --format json | jq -r '.kid'

To get the JSON Web Key Set as only public keys:

hydra get jwk --public <set-id>

Options

-h, --help help for jwk
--public Only return public keys

Options inherited from parent commands

-e, --endpoint string The API URL this command should target. Alternatively set using the ORY_SDK_URL environmental variable.
--format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "table")
-H, --http-header : A list of additional HTTP headers to set. HTTP headers is separated by a : , for example: `-H 'Authorization: bearer some-token'`.
-q, --quiet Be quiet with output printing.
--skip-tls-verify Do not verify TLS certificates. Useful when dealing with self-signed certificates. Do not use in production!

See also