[KC 17.0.1] Blank admin console with a self-signed cert
See original GitHub issueDescribe the bug
Logging into the admin console presents a blank page after the page header.
Version
17.0.1
Expected behavior
After logging in with the admin account, I’d expect to see the admin console.
Actual behavior
I’m able to access the server’s web pages both on http (port 8080) and https (port 8443), however in both cases after logging in with the admin account, I’m presented with the admin console that contains the top banner and a blank page, both locally and from a remote workstation.
How to Reproduce?
I’m running Keycloak 17.0.1 on a Windows Server 2016 server, and have generated a self-signed certificate as follows:
keytool -genkey -keyalg RSA -alias selfsigned -keystore .\conf\server.keystore -storepass password -validity 360 -keysize 2048
I’ve run a build of the server with this command:
.\bin\kc.bat build --db mssql --transaction-xa-enabled=false
I’ve set the following environment variable:
$Env:KC_HOSTNAME_STRICT_HTTPS='false'
I then start the server with this command:
.\bin\kc.bat start `
--db-url-host=SERVERNAME `
--db-url-database=DBNAME `
--db-username=DBUSER `
--db-password=DBPASSWORD `
--db-schema=dbo `
--hostname=SERVERNAME `
--hostname-strict-https=false `
--http-enabled=true
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Blank page after clicking Admin Console - Keycloak Discourse
Clicking on the admin console link on the main page successfully redirects ... a proxy and I am using port 8443 with a...
Read more >Problem running Keycloak on Docker container #5310 - GitHub
User with username 'admin' already added to ... it will be auto generated on first use with a self signed certificate for host...
Read more >How to Enable HTTPS in the Admin Console using ... - YouTube
This is the continuation of Part 1:How to Enable HTTPS in the Admin Console using Self Signed Certificates ...
Read more >How to Enable HTTPS in the Admin Console using ... - YouTube
This video explains how to enable HTTPS in the Admin Console using Self Signed Certificates.
Read more >HOW TO: Remove insecure warning when Admin Console is ...
Right-click on certificate > install certificate > local computer > Place all certificates in the following store > Trusted root certification ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mcattle i could reproduce that behaviour and found it unsatisfying, so created #11134 to do better. hopefully it can make it to v18, trying to come up with sth today that lowers ALL_CAPS hostnames and then checks for actual validity (atm it is also possible to use non-compliant hostnames with e.g. more than 253 characters)
update: ok, after learning that nothing is ever easy, especially not international hostnames, IDN, upper/lowercase behaviour in different languages, I closed the PR I had with a not-sufficient solution and will update the docs instead for now 😅
I’ve the same issue with 17.0.1 in a Docker container based on Alpine (latest). The following env vars are set:
Same setup / configuration with 17.0.0 is working.