Skip to main content

ory import jwk

ory import jwk

Imports JSON Web Keys from one or more JSON files.

Synopsis

This command allows you to import JSON Web Keys from one or more JSON files or STDIN to the JSON Web Key Store.

Currently supported formats are raw JSON Web Keys or PEM/DER encoded data. If the JSON Web Key Set exists already, the imported keys will be added to that set. Otherwise, a new set will be created.

ory import jwk set-id file-1 [file-2] [file-n] [flags]

Examples

{{ .CommandPath }} my-set ./path/to/jwk.json ./path/to/jwk-2.json --format json
{{ .CommandPath }} my-set ./path/to/rsa.key ./path/to/rsa.pub --use enc

Options

      --alg string       Sets the "alg" value of the JSON Web Key if not "alg" value was defined by the key itself. Required when importing PEM/DER encoded data.
-h, --help help for jwk
--project string The project to use
--use string Sets the "use" value of the JSON Web Key if no "use" value was defined by the key itself. Required when importing PEM/DER encoded data. (default "sig")

Options inherited from parent commands

  -c, --config string   Path to the Ory Cloud configuration file.
--format string Set the output format. One of default, json, yaml, and json-pretty. (default "default")
-q, --quiet Be quiet with output printing.
-y, --yes Confirm all dialogs with yes.

SEE ALSO