Cannot redirect to Kibana when implementing HTTPS in Keycloak

Hi.
I’ve successfully implemented Keycloak running on HTTP with OpenDistro Kibana running on HTTPS using OpenID connect. But, whenever I try to change the settings to HTTPS in Keycloak, it is unable to redirect to Kibana. Error which can be seen is: “This problem can sometimes be caused by disabling or refusing to accept cookies.” and a bunch of 302 error in Kibana logs.
And yes, I’m using self signed certs for both of the applications.
Tried with the default one provided by Keycloak, that didn’t helped either.

Thanks in advance.