Keycloak Docker for production use

Hi,

i read this article: Running Keycloak in a container - Keycloak and I was wondering what

# for demonstration purposes only, please make sure to use proper certificates in production instead
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore

this does? Is this just for the https certificate or a root certificate for keycloak? Is it allowed to remove that line?

Alright to be honest I didn’t know this immediately myself, I ran it through Chatgpt though and it seems here the keystore is used to enable https communications with the server. You can see the entire conversation here: https://github.com/Phoenix-Ignited-Tech/Public-GPT-Conversations/blob/main/Keycloak-Keystore-Config-GPT also see the Keycloak Server All Config page here: https://www.keycloak.org/server/all-config Let me know if this is of any use!

1 Like