Comments (5)
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.
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.
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.
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.
Fixed by #8
from certstream-python.
Related Issues (20)
- Error on Windows HOT 1
- Error when installing package on MacOS HOT 3
- TypeError: listen_for_events() got an unexpected keyword argument 'url' HOT 2
- SSL Connection error when connecting to local certstream server HOT 1
- Element "chain" no longer contained in the datastructure though still in the README? HOT 1
- WebSockets package updated which breaks certstream HOT 3
- ERROR:websocket HOT 5
- FIX for: _on_message() takes 2 positional arguments but 3 were given HOT 4
- Is possible to monitor phishing/fake certificate? HOT 1
- Missing tags for versions 1.10 - 1.12 HOT 1
- Error connecting to CertStream - [Errno -3] HOT 2
- Returns the meaning of the field.
- Example script prints duplicate domains HOT 1
- as_der field available? HOT 1
- Error in connecting to CertStream...
- is certstream down?
- Func listen_for_events param setup_logger not used
- Certs rate HOT 1
- Error connecting to CertStream - Handshake status 521 None HOT 7
- Error Connecting to Certstream HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from certstream-python.