Closed jmcintyre closed 10 years ago
I saw what appears to be a related issue on the noVNC page.
https://github.com/kanaka/noVNC/issues/86
It appears that the discussion has stopped there. Is there anything I can do to further isolate the issue for you?
@jmcintyre Can you update to the latest websockify (updating noVNC will get it) and try this again? I think I fixed an issue with using python 3 not detecting encrypted connections properly.
You will likely get a different (slightly more informative error) that is caused by Safari rejecting self-signed certificates. If you do, can you please report back the error and also follow the instructions on this wiki for forcing firefox (you will need to adjust for Safari) to accept a certificate?
https://github.com/kanaka/noVNC/wiki/Troubleshooting
If that works can you post back here the error you get and also the process for accepting the cert in Safari so that I can update that page with the Safari version of the error and instructions that are specific to Safari.
Thanks!
Sorry for the late response. When I ran the output above the websockify code was up-to-date with what is now in github in both websockify and novnc including the "elif handshake[0] in ("\x16", "\x80", 22, 128):" change. Was there another change that I might not know about?
@jmcintyre okay, understood. Were you able to manually validate the certificate (browsing directly to the websocket port) and see if that addresses the issue?
@kanaka Hi, I ran into this same issue. Posting my logs hoping to help -
WebSocket server settings:
proxying from :6080 to 192.168.56.101:5900
1: 192.168.56.1: new handler Process 1: handler exception: WSRequestHandler instance has no attribute 'last_code' 1: Traceback (most recent call last): File "/mnt/share/DSMaintainer/wsproxy/websocket.py", line 773, in top_new_client self.client = self.do_handshake(startsock, address) File "/mnt/share/DSMaintainer/wsproxy/websocket.py", line 705, in do_handshake if wsh.last_code == 101: AttributeError: WSRequestHandler instance has no attribute 'last_code'
Python 2.6.5 Safari 5.17
non-SSL mode works fine for the above setup. I am using self-signed certificate where the CA and Roots are installed on my Mac's Keychain (similar to cert manager in MS Windows).
NOTE: I am able to browse directly to the port (https://xxx:6080) and see file listing just fine. (With lock icon on top right of Safari window to denote that the cert is trusted)
Litte bump on this one ? I'll appreciate :)
Closing due to age. Please reopen if this is still an issue.
When connecting through ssl (wss://) from Safari (windows, mac, and iOS) the connection will fail with the following console output:
Chrome connects and forwards successfully. Chrome is connecting with hybi-13 and Safari with Hixie-76. Standard ws connections work when allowed (no --ssl-only).
Python 3.2.2 Safari 5.1.2 iOS 4.3