sslechoserver (QtWebSockets) and https
-
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- I can get this to work with unsecured echoserver app, using its echoclient.html page in a browser anywhere
- I have installed mod_ssl and configured apache, and can the echoclient.html page to load over https.
- 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
-
Hi,
Might be a silly question but did you check the web console to see if there were information about what is happening ?
-
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.