You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result: ERROR:snowflake.connector.ocsp_snowflake:No CA bundle file is found in the system. Set REQUESTS_CA_BUNDLE to the file. and a nice stack trace.
What did you expect to see?
It should be able to load the certificates from the ca-bundle.trust.crt file, and create the session.
We investigated a bit and it looks like it comes from snowflake.connector.ocsp_asn1crypto.py::SnowflakeOCSPAsn1Crypto::read_cert_bundle, where it is only loading certificates of type CERTIFICATE. However, in ca-bundle.trusted.crt, the certificates are of type TRUSTED CERTIFICATE, here is an extract:
github-actionsbot
changed the title
Doesn't load TRUSTED CERTIFICATE when used with REQUESTS_CA_BUNDLE
SNOW-1822170: Doesn't load TRUSTED CERTIFICATE when used with REQUESTS_CA_BUNDLE
Nov 22, 2024
Hi, we are facing an issue when using a trusted ca-bundle in our setup.
(also tested on alma8, should be reproducible on any OS)
pip freeze
)?Reproduce with
snowflake-snowpark-python==1.25.0
What did you do?
export REQUESTS_CA_BUNDLE=/etc/ca-certificates/extracted/ca-bundle.trust.crt
=> adapt the path to your OSResult:
ERROR:snowflake.connector.ocsp_snowflake:No CA bundle file is found in the system. Set REQUESTS_CA_BUNDLE to the file.
and a nice stack trace.It should be able to load the certificates from the
ca-bundle.trust.crt
file, and create the session.We investigated a bit and it looks like it comes from
snowflake.connector.ocsp_asn1crypto.py::SnowflakeOCSPAsn1Crypto::read_cert_bundle
, where it is only loading certificates of typeCERTIFICATE
. However, inca-bundle.trusted.crt
, the certificates are of typeTRUSTED CERTIFICATE
, here is an extract:The text was updated successfully, but these errors were encountered: