Could not obtain configuration from Keycloak Https

Hi guys,

I am working with Keycloak 12.0.1, after enabling https in keycloak, I am encountering the following issue:

Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.keycloak.authorization.client.AuthzClient]: Factory method ‘authzMasterClient’ threw exception; nested exception is java.lang.RuntimeException: Could not obtain configuration from server [https://ip:8443/auth/realms/dxxx/.well-known/uma2-configuration].

But I could even open the url with browser and the application is working fine with [http://ip:8080/auth/realms/dxxx/.well-known/uma2-configuration]

Anyone could kindly help?

Thanks in advance.