Skip to main content

deletejwks

Adding JSON Web Keys to MistServer

This call can be used to add JWKS to MistServer without running the risk of deleting others. Should you attempt to add an existing JWKS it will be overwritten with the new values.

The response is the now removed JKWS or null if nothing was removed. In order to remove the JWK correctly you must do one of two things:

  • pass the JWK as it is setup within MistServer
  • pass the kid field.
{
"deletejwks": [
[
{
"alg": "HS256",
"k": "KEY",
"kid":"UNIQUESTRING",
"key_ops": [
"sign",
"verify"
],
"kty": "oct"
},
{
"input": true,
"output": true,
"admin": true,
"stream": ""
}
]
]
}

example deleting a jwks based on kid

{"deletejwks":"UNIQUESTRING"}