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

[BUG][FR] Impossible to specify SSL certification #6939

Open
LucaMingarelli opened this issue Nov 7, 2024 · 1 comment
Open

[BUG][FR] Impossible to specify SSL certification #6939

LucaMingarelli opened this issue Nov 7, 2024 · 1 comment

Comments

@LucaMingarelli
Copy link

What's the problem of not having this feature?
This feature is essential as its lack prevents using openbb at all when SSL certification is required to connect to the network.

Solution
The library should have some way to specify the path to the SSL certificate. When using requests this would be for example set in the verify attribute of the session. Therefore I would see two options:

  • Exposing explicitely the session from request instantiated (e.g. I see it in yfinance/data.py, line 73). This would meen having the session exposed as an attribute for example obb.session, so that its attributes can be modified.
  • Specifying a variable in the .env file which will then picked up when creating a request.Session() in a similar manner to what is done for proxies.
@deeleeramone
Copy link
Contributor

Hi there,

You can install this package, https://pypi.org/project/pip-system-certs/, that will force Python to use the system trust store instead of from the certifi package.

Alternatively, the requests library allows you to define environment variables:

REQUESTS_CA_BUNDLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants