Repository navigation
What is a keystore? #14622
|
Hi Team, As this guide explains, the only way of providing the SSL certificates to Keycloak is to give them as a keystore file (with a password). I searched but could not find any other guide referencing what this keystore would be and how to generate it from existing HTTPS certificate files. Could you please refer me to such guide? Or alternatively, is there any (undocumented) way of providing those certificates directly? |
Replies: 1 comment 5 replies
|
A keystore / truststore is simply a store for cryptographic keys usually used in Java environments (like the Keycloak backend). You can create a keystore using the The difference between keystores and truststores is what they store - the keystore contains private keys and certificates usually used by a server, while the truststore contains public certificates that a client trusts (the server / client roles are not exclusive). |
A keystore / truststore is simply a store for cryptographic keys usually used in Java environments (like the Keycloak backend). You can create a keystore using the
keytoolcommand line utility that usually comes with the java packages. You can read the manual look up some usage examples for thekeytoolutility to get started (I usually interact really infrequently with it, so I do not have any quick examples).The difference between keystores and truststores is what they store - the keystore contains private keys and certificates usually used by a server, while the truststore contains public certificates that a client trusts (the server / client roles are not exclusive).