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.