CaliDog / certstream-python

Python library for connecting to CertStream
MIT License
425 stars 72 forks source link

SSL Connection error when connecting to local certstream server #40

Closed june5079 closed 3 years ago

june5079 commented 3 years ago

Hi,

I set certstream server with exilir on cent OS 7 and seems to work fine. (Web page works)

At another server, I set certstream-python and chaned wss server from calidog to my local server like below

certstream.listen_for_events(callback, url='wss://10.10.10.10:8080/') --> I changed port number

when I run the python code, error occur like this.

certificate_update: 0cert [00:00, ?cert/s]Error connecting to CertStream - [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:1123) - Sleeping for a few seconds and trying again...

Do you have any idea to solve this?

Fitblip commented 3 years ago

Hi @june5079 sorry for the delay, you should specify ws://10.10.10.10:8080 (ws vs wss).