How to create a realm key provider via API

We’re looking to add our RSA certificate to a number of realms via API. There is an API to get the realm keys (GET /{realm}/keys) - is there one for creating one without having to use the UI?

Apparently, this is done through the Components API using a providerType of org.keycloak.keys.KeyProvider

1 Like