Skip to content

tlann/keycloak-mtls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycloak-mtls

An example of Keycloak client mtls used to troubleshoot. Take a look at the github discussion here keycloak/keycloak#15580 (reply in thread)

Generate public and private Keys

The directory ./certs contains the script ./makeCerts. Run ./makeCerts.sh <ip> to generate self signed root, server, and client keys. The script adds the keys to a keystore and truststore that get copied to the directory ./genCerts. The docker compose file mounts the directory in a volume to be used by keycloak.

Start Keycloak

Startup Keycloak using docker-compose up from the repo root.

Import Keystore

Open the admin console at http://<ip>:8443 and login with credentials admin:admin. Thgis is done by clicking on the master drop down and clicking the Create Realm button. Use the exported realm x509-realm-export.json to setup the realm and configure it to do a x509 login.

Navigate to https://<host ip>:8443/realms/x509/account/

About

Keycloakclient mtls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages