I init keycloak functionality via:
keycloak_openid = KeycloakOpenID(server_url=KEYCLOAK_URL,
client_id="dashboard-app",
realm_name="dashboard",
client_secret_key=_KEYCLOAK_SECRET_KEY_)
I used requests==2.31.0 before and everything worked fine.
With upgrading to requests==2.32.2 I run into a SSL prob:
- KeycloakConnectionError: Can’t connect to server (HTTPSConnectionPool(host=’xxx.de’, port=443): Max retries exceeded with url: /auth/realms/xxx/.well-known/openid-configuration (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)’))))
Has there been any changes in package requests that could explain this? May I fix this myself?
Env:
- Python 3.10
- python-keycloak==4.0.0