Repository navigation
Replies: 12 comments 19 replies
|
Did you perform all the necessary TLS configuration as described at https://www.keycloak.org/server/enabletls? |
|
This is mi docker-compose.yml file. |
|
Thanks for your help. Its very important for me. Correct, if I change I want it to be requested in another realm (not master) when logging in with a user. In https certificate and https key, I provide keys generated with lets encrypt for my domain where I deploy keycloak. Then in my browser the .p12 certificate is different, it is personal and I want to make it possible to log in with it. |
|
Ok I have proceeded with your indication. I have created the truststore with passwor
8000
d "root1234" I add the .p12 certificate that I have installed in my browser. I have modified the environment of my docker compose file But the issue continues |
|
I did the following steps
openssl req -nodes -x509 -sha256 -newkey rsa:4096 \
-keyout admin.key \
-out admin.crt \
-days 356 \
-subj "/CN=Admin" \
-addext "extendedKeyUsage = clientAuth" \
-addext "keyUsage = digitalSignature, keyEncipherment, dataEncipherment" \
-addext "subjectAltName = otherName:1.3.6.1.4.1.311.20.2.3;UTF8:ADMIN@TEST"
keytool -import -trustcacerts -keystore truststore.p12 -storepass changeit -noprompt -file admin.crt -alias admin
openssl pkcs12 -export -in admin.crt -inkey admin.key -name admin -out admin.p12In Windows I double-click on For Keycloak I configure When connecting using Chrome this is what I see |
|
Ok, I think we are close, the problem is the keys. I have exported it to certificate.cer (x509) How can I configure it? or what is the process to follow? |
|
Yes, the certificate in the browser tells me that I have the corresponding private key. I installed it in .p12 format, it includes the certificate along with the private key. I can export it with private key to .pfx format. |
|
My certificate was generated by the FNMT. Is it possible that I need AC Root certificate from FNMT? |
|
Hello @tomastn14, here is a working configuration I tested last time for mTLS if you want to compare: #15481 (comment) |
|
Hello friends @justin-tay @david6983 , the last question was resolved, but I have a new one. Previously, I was able to log in with an x509 certificate but having the user created previously. Now I want to create a registration flow so that if the user is not created, it will be created from the x509 certificate mapping. How should I configure it? |
|
The error ERR_BAD_SSL_CLIENT_AUTH_CERT is a security-related bug that appears in web browsers, especially Google Chrome, due to a failure to interact with the SSL/TLS client authentication process. Some of the 10BC8 se are caused by certificate misconfiguration, wrong date and time of the client device, browser, and system software, and interferences from browser plug-ins and anti-virus programs. |
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
In keycloak, i want to log in with users with a personal digital certificate (.p12) that i installed in my browser.
I had configured the bind flow "Browser flow" with x509 username form but when i try to log in the browser don't request the certificate.
Can anyone help me??
Thanks in advance
All reactions