Keycloak 20.0.1 and flask-oidc issue

Hi, I have have vm running keycloak with certs for https, these are valid certs with Globalsign as issuer. So then thought that my flask app running flask-oidc should be able to verfiy the certificate, but instead after pressing login to keycloak i get ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

Anyone know how to solve this?
I thought that as long as the rootCA is available in httlib2 that flask-oidc uses it would validate, but it does not. I have checked that httplib2 has the rootCA for my certificates, and it is there. Could not find the intermediary cert, but added it manual, but still it fails