Chrome failing to connect to websocket server (Opcode -1) "handshake was canceled" Chrome failing to connect to websocket server (Opcode -1) "handshake was canceled" google-chrome google-chrome

Chrome failing to connect to websocket server (Opcode -1) "handshake was canceled"


Ok after long last I figured out something that worked. The problem still makes no sense to me, but the solution was to explicitly import the certificate into its accepted list in a very specific way:

  1. Open an https page with the certificate
  2. Click the lock icon and under Connection choose Certificate Information
  3. Go to the Details tab > Copy to File. Choose PKCS #7, single certificate as the file format and save it somewhere (name doesn't matter).
  4. Open up Chrome Settings > Show advanced settings > HTTPS/SSL > Manage Certificates.
  5. Go to the Trusted Certificate Root Authorities tab
  6. Import the certificate you "copied to file" in step 3
  7. Restart Chrome (one of those few cases where you need to)

Thanks to the answer here:Getting Chrome to accept self-signed localhost certificate