Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. sslechoserver (QtWebSockets) and https
Forum Updated to NodeBB v4.3 + New Features

sslechoserver (QtWebSockets) and https

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 64 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DalePennington
    wrote last edited by
    #1

    Folks,
    This is an early stage of a project where I am confirming I can do something, namely properly set up Apache webserver with ssl and set up a secure WebSocket connection.
    I am using the sslechoserver/sslechoclient example applications for this purpose. I can do the sslechoserver to sslechoclient apps directly talking securely with no apparent issues, but when I try to get the sslechoclient.html file in the sslechoserver to talk to sslechoserver I cannot get a connection. I know the following

    1. I can get this to work with unsecured echoserver app, using its echoclient.html page in a browser anywhere
    2. I have installed mod_ssl and configured apache, and can the echoclient.html page to load over https.
    3. At this point I failed to get a connection, so I copied the webserver certificate and key (self certified version) to build sslechoserver again so it is using the same cert and key as the Apache webserver, and I still cannot get a connection. The error I get in the Web Console in Firefox is "Firefox can't establish a connection to the server at wss://localhost:1234/."
      Anyone has an idea about what I am doing wrong ?
      Thanks,
      Dale Pennington
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi,

      Might be a silly question but did you check the web console to see if there were information about what is happening ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DalePennington
        wrote last edited by
        #3

        Yep the error above was what I saw on the web console. I can get the page to load as HTTPS, and the server side of the websocket (sslechoserver) is not reporting any errors. Hence why I am rather lost. Does not help this is not an area I have much experience in.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved