I am getting the infamous error
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)
I tried almost all solutions available online so far but no luck. I am using pyoidc
(with keycloak and superset) which uses urllib
that fails to contact the auth server. Here is the part of my Dockerfile
that tries to solve this error:
RUN pip install --upgrade certifi
COPY ssl/ /usr/local/share/ca-certificates/
RUN update-ca-certificates
RUN cat /usr/local/share/ca-certificates/mycert.crt >> /usr/local/lib/python3.8/site-packages/certifi/cacert.pem
RUN cat /usr/local/share/ca-certificates/mycert.crt >> /usr/local/lib/python3.8/site-packages/httplib2/cacerts.txt
ENV REQUESTS_CA_BUNDLE=/usr/local/lib/python3.8/site-packages/certifi/cacert.pem
I am still getting the error with these steps. What else should I do? Any ideas/help are greatly appreciated.