statianzo / Fleck

C# Websocket Implementation
MIT License
2.29k stars 583 forks source link

https and Clent Certificate (not working) #168

Closed drormu1 closed 5 years ago

drormu1 commented 8 years ago

just wonder if you can help me with problems I found on prodction deployment. My web site is https, and my end client must use X509 client Certfificate.

So I try use it via WSS window.ws = new this.wsImpl('wss://' + '127.0.0.1' + ':' + this.settings.port + '/');

On the c# agent I init it to wss://.... and also generate self sign Cer via c#, and asign it to server.Certificate

but, still my agent not get ready well, and javscript get ReadyState == 3 any help ?

statianzo commented 8 years ago

Use localhost instead of 127.0.0.1 and the certificate common name has to match.

drormu1 commented 8 years ago

thanks,

certiciate CN should be "localhgost" or machineName ?

2016-03-15 14:55 GMT+02:00 Jason Staten notifications@github.com:

Use localhost instead of 127.0.0.1 and the certificate common name has to match.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/statianzo/Fleck/issues/168#issuecomment-196805522

statianzo commented 8 years ago

It has to match whatever the URL is. In this case, localhost.