Comments (7)
I saw what appears to be a related issue on the noVNC page.
It appears that the discussion has stopped there. Is there anything I can do to further isolate the issue for you?
from websockify.
@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!
from websockify.
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?
from websockify.
@jmcintyre okay, understood. Were you able to manually validate the certificate (browsing directly to the websocket port) and see if that addresses the issue?
from websockify.
@kanaka Hi, I ran into this same issue. Posting my logs hoping to help -
python wsproxy/wsproxy.py -v --web /var/www/vnc 6080 192.168.56.101:5900 --cert vrsn-test-cert.pem --key key.pem
WebSocket server settings:
-
Listen on :6080
-
Flash security policy server
-
Web server. Web root: /var/www/vnc
-
SSL/TLS support
-
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)
from websockify.
Litte bump on this one ? I'll appreciate :)
from websockify.
Closing due to age. Please reopen if this is still an issue.
from websockify.
Related Issues (20)
- systemd script to startup
- about target-config HOT 1
- tests failed on macos
- Logging and monitor HOT 1
- How to Revoking a Certificate of VNCServer? HOT 1
- TypeError: 'str' object cannot be interpreted as an integer
- noVNC & websockify in Docker Compose on Raspberry Pi 4 using RealVNC Server HOT 1
- Installation fails HOT 1
- wss: via ssl on linux debian board HOT 1
- Readme is missing examples HOT 1
- Failed when connecting: Connection closed (code: 1005) HOT 2
- soft reload possibility HOT 1
- novnc session getting disconnected after 30 min if left idle HOT 5
- Server disconnected (code: 1015). Open developer tools (F12/Ctrl+Shift+I on Windows, Option+Command+I on Mac OS) and switch to "Console" for details HOT 1
- Exception when use JSONTokenApi as token plugin
- how to connect to tls vnc server HOT 4
- Extra parameters HOT 2
- Connection pooling HOT 1
- which option disabling directory listings HOT 1
- How to integrate noVNC in Angular 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websockify.