New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Create JSON Web Key

POST 

/admin/keys/:set

This endpoint is capable of generating JSON Web Key Sets for you. There are different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymmetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created.

A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.

SDK ReferenceTypeScript
createJsonWebKeySet(createJsonWebKeySet)
ParametersTypeRequiredDescription
createJsonWebKeySetCreateJsonWebKeySetrequired
setstringrequiredThe JSON Web Key Set ID
VariableType
dataJsonWebKeySet