Secure WebSocket connection error on twisted version
See original GitHub issueI try to connect to my remote router: https://gist.github.com/spiiin/5f425e2c769e766bb5fb8d4a51b65bbc I have ssl-certificate on router valid for name “example.com”, but looks like this code, try to connect via IP-address, not via server name so I have ssl verification error (I think, i see any logs, but only forever connection attempt)
I check code with Python 2.7 & Python 3.6 on windows and ubuntu, using version of autobahn installed via pip, nothing works.
If I change first line of code to:
from autobahn.asyncio.wamp import ApplicationRunner
connection established as expected, so, possible, bug in twisted library. I normally connects to remote router via domain name, but not via ip (as expected - certificate valid for domain name only).
I also check this idea with autobahn-js - default router page https://example.com:8080/frontend.html connects as expected, but http://1.2.3.4:8080/frontend.html (where 1.2.3.4 - ip of my example server) shows me “SSL_ERROR_BAD_CERT_DOMAIN - certificate valid only for name: example.com”
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (10 by maintainers)
Top GitHub Comments
Can you try installing with
pip install autobahn[encryption]
(that is, include the “encryption” extra)?cannot reproduce