title: Websocket certificate for local network
body: <p>I am having trouble with certificate when using websocket (WSS://).</p>
  
  <p><strong>What is working</strong><br>
  For now, I've been using websocket with <code>WEB_SOCKET_FORCE_FLASH = true</code> and I had no issues with connecting to my websocket server.</p>
  
  <p><strong>What is not working</strong><br>
  I am trying to turn that option off, to stop using flash plugin for connecting. Problem occurs when i try to connect my websocket client to server. <code>WebSocket opening handshake was canceled</code> message appears.  </p>
  
  <p>I can disable this message, by going to <a href="https://127.0.0.1:9999" rel="nofollow">https://127.0.0.1:9999</a>. My browser will show that "This Connection is Untrusted", and if I add an exception here, my websocket connection will start working without any problem from now on. But i CAN'T make every end user to do that, right?<br>
  <a href="https://groups.google.com/forum/#!topic/sip_js/fry3eNVODo8" rel="nofollow">Google groups with this idea</a></p>
  
  <p><strong>What I need?</strong><br>
  Is there any way, to buy, or create some self-signed certificate, which I can use? The problem is also that, it doesn't have to be localhost/127.0.0.1 but also any other IP in local network. (like <code>192.168.0.100</code> etc). End user can change that IP whenever he likes to. He just needs to point on the PC where my desktop app/websocket server is running.</p>
  
  <p><strong>What have I tried?</strong><br>
  I sure tried to find my answer in google, browsing tons of forums, sites, and even few questions and all answers here on stack overflow.
  I also tried not using certificate at all, but my page is on https:// so connection using ws:// is impossible.  </p>
  
  <p><strong>Code</strong><br>
  I know, code is usually obligatory, but I actually got my websocket client/server working, but the issue is certificate, so i hope you can forgive me lack of code.</p>
  
  <p><strong>missing info?</strong><br>
  Do i need to provide any more information? I am willing to make multiple edits if needed.</p>