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
Sitting behind a corporate VPN/firewall which performs HTTPS inspection / SSL certificate replacement, I have to configure my environment to deal with otherwise fishy-looking certificates issued by the system. By default the basic requests.get, requests.post, etc., functions look for an environment variable REQUESTS_CA_BUNDLE (see docs), which points to a custom certificate bundle file that includes the Root CA for my company's VPN/firewall system. That one setting solves a lot of issues in Python land.
pystac-client, however, doesn't seem to respect that environment variable. It uses raw Request and Session objects to set up requests, resulting in this error:
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
I think the send method call on this line should probably account for REQUESTS_CA_BUNDLE via the verify argument, something like this:
Sitting behind a corporate VPN/firewall which performs HTTPS inspection / SSL certificate replacement, I have to configure my environment to deal with otherwise fishy-looking certificates issued by the system. By default the basic
requests.get
,requests.post
, etc., functions look for an environment variableREQUESTS_CA_BUNDLE
(see docs), which points to a custom certificate bundle file that includes the Root CA for my company's VPN/firewall system. That one setting solves a lot of issues in Python land.pystac-client
, however, doesn't seem to respect that environment variable. It uses rawRequest
andSession
objects to set up requests, resulting in this error:I think the
send
method call on this line should probably account forREQUESTS_CA_BUNDLE
via theverify
argument, something like this:The text was updated successfully, but these errors were encountered: