Giter Club home page Giter Club logo

Comments (5)

Fitblip avatar Fitblip commented on August 20, 2024

Can you give me more information about your setup? This is the first report I've seen of this bug, and your default installation should pick up your operating systems CA list automatically.

from certstream-python.

 avatar commented on August 20, 2024

should pick up your operating systems CA list automatically.

Which code would do that? I'd like to fix that "as upstream as possible" too.

This is the code in websocket-client: https://github.com/websocket-client/websocket-client/blob/e4c71712132ac07dd70a35f093f0ad3e87fdc415/websocket/_http.py#L164 It looks for a environment variable WEBSOCKET_CLIENT_CA_BUNDLE and otherwise uses the file cacert.pem in the current directory. The third option is the parameter with a path.
Then in the next function here: https://github.com/websocket-client/websocket-client/blob/e4c71712132ac07dd70a35f093f0ad3e87fdc415/websocket/_http.py#L138
The error is thrown if both parameters to context.load_verify_locations are None.

See also slackapi/python-rtmbot#63 scrapinghub/slackbot#133 BitMEX/sample-market-maker#11 streamlink/streamlink#1117 Crypto-toolbox/btfxwss#19

from certstream-python.

Fitblip avatar Fitblip commented on August 20, 2024

Hey @wagner-certat,

Sorry for the delay - I've been out on holiday.

I still don't have any information on your setup, you're still the only person to report this to me as an issue (and there are quite a few users at this point), and the websocket-client library comes pre-bundled with a list of valid CAs bundled with it. If you're interested in fixing it upstream, this seems like something to take up with the websocket-client library maintainer.

I'm also hesitant to merge this as you've included a changelog, which is not something I'd like to include in this repo.

from certstream-python.

 avatar commented on August 20, 2024

I'll try to phrase it completely differently.
websocket-client has the ability to set the used CA bundle as a parameter. If you want a custom CA bundle (e.g. the system's one) with certstream, you would need to set an environment variable. But this is not possible in a library, only for a user. -> Other programs can't set a different CA bundle for certsteam currently.

I'm also hesitant to merge this as you've included a changelog, which is not something I'd like to include in this repo.

Huh, why that?

from certstream-python.

 avatar commented on August 20, 2024

Fixed by #8

from certstream-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.