Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom CA certificates and SSL verification settings for corporate proxies? #408

Open
4 tasks done
saiteja-madha opened this issue Dec 11, 2024 · 1 comment
Open
4 tasks done
Assignees
Labels
dontstale Mark issues not to be removed by stalebot enhancement New feature or request question Further information is requested

Comments

@saiteja-madha
Copy link

Description of the Issue

When using Box SDK Gen with a corporate proxy that uses self-signed certificates, I’m encountering SSL verification errors. The SDK doesn’t provide a way to configure custom certificates or disable SSL verification, which is needed for environments with corporate proxies that perform SSL inspection.

Steps to Reproduce

  1. Set up corporate proxy in environment variables or requests configuration
  2. Initialize Box SDK client
  3. Attempt to make API calls
  4. Receive SSL verification error with message “certificate verify failed: self signed certificate in certificate chain”

Expected Behavior

The SDK should provide options to:

  • Configure custom CA certificates for verification via a .pem file
  • Disable SSL verification

Error Message, Including Stack Trace

HTTPSConnectionPool(host='api.box.com', port=443): Max retries exceeded with url: /oauth2/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

Versions Used

Python SDK: 1.8.0
Python: 3.11.x

@congminh1254
Copy link
Member

Hi @saiteja-madha

Thanks for your feedback, currently we are not supporting that feature, but we will try to implement it as soon as possible.

In the same time, because we are using requests library to make the API calls, so you can also configure the path to your self signed certificate with environment named REQUESTS_CA_BUNDLE.

Let me know if it works for you.

Bests,
Minh

@congminh1254 congminh1254 added enhancement New feature or request dontstale Mark issues not to be removed by stalebot labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dontstale Mark issues not to be removed by stalebot enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants