title: Secure websocket with localhost certificate
body: <p>We use a secure connection (HTTPS) for our site, and we need the client to communicate with a program running in background (made with Qt), which the user installed previously. We intended to do that using websockets, using a certificate signed by the company.
  The CA is installed in Windows and Mozilla databases.</p>
  
  <p>Since the websocket runs on the client side, and the websocket server also runs on the client's machine, the connection is perfromed on localhost. Also, because we use HTTPS, we must also use WSS. We chose port 2424.</p>
  
  <p>The problem is, Chrome, Firefox and IE consider the connection to be untrusted because it is on localhost (I think). If I open a new tab on <code>https://127.0.0.1:2424</code>, an error message appears; the browsers say the certificate is only valid on localhost, and that this could mean that someone may be trying to intercept data sent to the server (Firefox error code: <code>ssl_error_bad_cert_domain</code>).</p>