Issue enabling https on keycloak

Hi, I am having problems enabling https on my keycloak server. We have wildcard certificates (signed certificate) and a private keyfile. we have imported it in keycloak.jks and have modified the standalone.xml as mentioned in the document. Even then keycloak is generating self signed certificate and using that which in turn shows “Connection not secured” error in UI. Anyone aware of the issue? Have modified standalone.xml as follows:-

    <security-realm name="UndertowRealm">
    <server-identities>
        <ssl>
            <keystore path="keycloak.jks" relative-to="jboss.server.config.dir" keystore-password="secret" />
        </ssl>
    </server-identities>
</security-realm>

<subsystem xmlns="urn:jboss:domain:undertow:10.0">
   <buffer-cache name="default"/>
   <server name="default-server">
      <https-listener name="https" socket-binding="https" security-realm="UndertowRealm"/>
   ...
</subsystem>
2 Likes

I’ve exactly the same issue, did you found a solution so far? Does anyone know why this happens and is still not possible to reach the application with HTTPS?