Quantcast
Channel: How to retrieve the private keys from keycloack realms keys? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Jesús Moncada Ramírez for How to retrieve the private keys from keycloack realms keys?

$
0
0

The solution using the Keycloak's internal database is great, but I just thought of a new one. By exporting your realm (more information here), you can easily inspect the JSON file and find the precise information you need.

This is, with your Keycloak server stopped, in the main folder execute:

bin\kc.[sh|bat] export --file "name-of-your-realm.json" --realm <your-realm>

where "name-of-your-realm.json" should be replaced with the path of the future exportation file and <your-realm> with the name of the realm.

Finally, as I have previously said, open the JSON file and Ctrl + F privateKey, rsa-generated, or whatever information you need.

Keycloak private key in realm export file


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>