I was able to generate the new keypair via UI: https://keycloak.gitbooks.io/server-adminstration-guide/content/topics/realms/keys.html Now I want to do it via Rest API but can find only GET method: http://www.keycloak.org/docs/rest-api/#_get_admin_realms_realm_keys How to generate Realm Keys via rest API?