Giter VIP home page Giter VIP logo

Comments (7)

jmcintyre avatar jmcintyre commented on May 17, 2024

I saw what appears to be a related issue on the noVNC page.

novnc/noVNC#86

It appears that the discussion has stopped there. Is there anything I can do to further isolate the issue for you?

from websockify.

kanaka avatar kanaka commented on May 17, 2024

@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.

jmcintyre avatar jmcintyre commented on May 17, 2024

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.

kanaka avatar kanaka commented on May 17, 2024

@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.

miztsai avatar miztsai commented on May 17, 2024

@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.

CyrilPeponnet avatar CyrilPeponnet commented on May 17, 2024

Litte bump on this one ? I'll appreciate :)

from websockify.

DirectXMan12 avatar DirectXMan12 commented on May 17, 2024

Closing due to age. Please reopen if this is still an issue.

from websockify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.