crossbario / autobahn-testsuite

Autobahn WebSocket protocol testsuite
https://crossbar.io/autobahn/
Apache License 2.0
1k stars 84 forks source link

Support for Server Name Indication #117

Closed rishabh-bector closed 2 years ago

rishabh-bector commented 3 years ago

Hi,

We're big fans of this tool at Cloudflare! It's been very helpful for ensuring our websocket reliability. I noticed that in some situations, tests fail with OpenSSL error SSL routines, ssl3_read_bytes, sslv3 alert handshake failure. After some further investigation I've found that this is due to a lack of default support in twisted for SNI enabled servers.

I've opened a small PR here which fixes this by allowing users to specify an optional hostname key for servers in their spec file. Would love to get this merged so that we can continue testing secure sockets.