[keycloak-user] Keycloak realm certificates export

Jamie McDowell jambo_mcd at yahoo.co.uk
Mon Oct 29 11:34:37 EDT 2018


I have managed to obtain just the certificate using the below command in case anyone needs this in future
 /opt/jboss/keycloak/bin/kcadm get keys \--server <url> \--realm master \--user <user> \--password <password> \-r <realm> | grep "certificate*"
Regards,
Jamie 

    On Monday, 29 October 2018, 11:56:25 GMT, Jamie McDowell <jambo_mcd at yahoo.co.uk> wrote:  
 
 Hi,

I am trying to find a way to be able to retrieve a realm certificate which can then be passed to Knox. When a realm is deployed, it generates a new public key, therefore any Knox Configuration would have to be updated with new corresponding certificates. 
Knox is used to decrypt singed JWT's.
Is this something that can be achieved?
I have tried running kcadm to pull the certificate details however i am unable to provide only the cert details which i would then want to output into another file.
Examples of kcadm 
/opt/jboss/keycloak/bin/kcadm get keys \--server <url> \--realm master \--user <user> \--password <password> \-r <realm>
Regards,
Jamie    


More information about the keycloak-user mailing list