I'm using .Net 4.5 and HttpListener class on Windows Azure(a worker role) to make my own WebSocket server. For HTTP non-secure connections it works very well. The problem is that I need to make WebSocket connection secured with SSL(wss://).
I've seeking around and neither HttpListener class documentation and internet(even here) hasn't helped me so much.
I found that httpcfg.exe should help me configure the certificate but no lucky.
So, that are my questions:
- Is there any way to enable it from my code? Like read the certificate from store and set it on HttpListener somehow?
- If not, httpcfg.exe is the solution? If yest, how to use it?
- If 1 == No and 2 == yes, how can I use httpcfg in Azure?
Thanks! I really appreciate the help...
Best regards...
Gutemberg