Coder Social home page Coder Social logo

SSL websockets about websockify HOT 2 CLOSED

novnc avatar novnc commented on May 17, 2024
SSL websockets

from websockify.

Comments (2)

chromer avatar chromer commented on May 17, 2024

I tried using a self signed cert self.pem but i get:
1: handler exception: [Errno 1] _ssl.c:1331: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
I used this command to generate certificate:
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem (as mentioned in noVNC documentation)
what shd I do about it in Firefox this works in chrome.
I am using FF 11.0 Chrome 17.0.963.79 m on Windows XP. I am running the server on a debian box.
Please tell me the correct way to do this.
Here is the chrome output(it works in chrome):
SSL/TLS (wss://) WebSocket connection
Version hybi-13, base64: 'True'
Path: '/websockify'

from websockify.

kanaka avatar kanaka commented on May 17, 2024

Since it's self-signed you need to get firefox to accept the certificate. Unfortunately, unlike normal HTTPS, WebSockets connections don't give you the opportunity to accept self-signed certs so you have to use another mechanism. You can either import the cert directly, or browse to the Websocket port directly using https and accept it that way. I describe this a bit more in the Troubleshooting wiki page.

Chrome automatically accepts certificates for WebSocket whether they are valid or not. Neither behavior is particularly ideal. I tried to push firefox to allow WebSocket certs to be manually accepted. Perhaps if you file a bug and we get multiple voices calling for it they might do it.

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.