Hello,I need some help in configuring SSL.Steps I performed.
- Configured Keycloak in an Azure Windows VM (having a DNS mapped to public IP)
- from internet able to open both pages
- https://<DNS>:8443/auth/ (with not secure error at this time)
- http:// <DNS>:8080/auth/
- generated a private key and keystore using command inside standalone/configuration folder >> keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore keycloak.jks -dname "CN=XXX, OU=XXX, O=XXX, L=XXX, ST=XXX, C=XXX"
- created a CSR >> keytool -certreq -alias server -file XXX.csr -keystore keycloak.jks
- Obtained Root,CA and SSL Certs and imported them in keystore:
- keytool -import -trustcacerts -alias root -file XXX.crt -keystore keycloak.jks -storepass XXX
- keytool -import -trustcacerts -alias intermediate -file XXXCA.crt -keystore keycloak.jks -storepass XXX
- keytool -import -trustcacerts -alias domain -file XXX.crt -keystore keycloa.jks -storepass XXX
- followed the documentation and ran below commands from jboss cli:
- $ /subsystem=elytron/key-store=httpsKS:add(relative-to=jboss.server.config.dir,path=keycloak.jks,credential-reference={clear-text=XXX},type=JKS)
- $ /subsystem=elytron/key-manager=httpsKM:add(key-store=httpsKS,credential-reference={clear-text=XXX})
- $ /subsystem=elytron/server-ssl-context=httpsSSC:add(key-manager=httpsKM,protocols=["TLSv1.3"])
- $ /subsystem=undertow/server=default-server/https-listener=https:write-attribute(name=ssl-context, value=httpsSSC)
- reloaded jboss
- restarted keycloak
After this https url stopped working. even from inside the VM https://localhost:8443/auth/ also not workinghttp one is working fine.
Please help, what step I am missing here.
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/CADv9axQ0Ro9zqzPRvX5u0G%2BHJxsVN3gTiymJBByQCPN%3DGwnJWA%40mail.gmail.com.