dpallot / simple-websocket-server

A python based websocket server that is simple and easy to use.
950 stars 320 forks source link

naive question : can I have multiple privkey.pem #75

Closed manatlan closed 6 years ago

manatlan commented 6 years ago

I want to run a WSS on two domains names (ex: aaa.com & bbb.com) ... I've reach to do it for each ssl domain with the according privkey separatly ... But I'd like to listen on the 2 domains (with the 2 privkey.pem) at the same time ? is it possible ?

manatlan commented 6 years ago

I've reach to set them thru nginx with reverse proxy for my wss ;-) thanks a lot

uzlonewolf commented 2 months ago

This is now possible with the custom SSL contexts added in #80 and a custom context with ctx.set_servername_callback().