Hi.
I have successfully implemented OpenID using Keycloak on ODFE version 1:11:0. Everything is working prefectly fine when Keycloak is running on HTTP. But, when I change the config.yml and kibana.yml to change URL to HTTPS version, Keycloak fails to redirect to Kibana.
Hi @Anthony.
I did tweaked the config.yml as provided by you but still no success. {"type":"log","@timestamp":"2021-05-18T03:49:40Z","tags":["error","plugins","opendistroSecurity"],"pid":1,"message":"OpenId authentication failed: Error: Authentication Exception"}
Also, I am using self-signed certs as described here and the certificates used by Keycloak is a non-admin certificate.
Thanks for your response, but no luck.
I’ve noticed you’re using 1.11. Unfortunately, this version doesn’t handle self-signed certs very well. It will refuse to connect with keycloak if such is in use.
Version 1.10, 1.11 and 1.12 have the same self-signed cert problem. 1.13 got it resolved.
Also when you use IP address of the keycloak, please be sure that keycloack’s certificate has IP address in CN (Common Name) or SAN (Siubjet Alternative Name).
Could you share your kibana.yml file and OpenID config (settings tab) from keycloak?
@pablo, I’ll try this too and will let you know if it worked. I’ll share the configs as well.
The one I’ve been using now is: CN=admin.odfe.net for admin certs and CN=node.odfe.net for rest of the certs, including Keycloaks’.
Thank you very much! This is what I was doing wrong.
But now, I re-created my root-ca with CN=10.10.4.3, CN=admin.odfe.net for Admin certificate and CN=node.odfe.net for Kibana and Logstash. For Keycloak, I used CN=10.10.4.3 and restarted everything. It works now!
Thank you very much for your time and help.