[Interest] qtWebsocket SSL question
"Alexander Carôt"
alexander_carot at gmx.net
Fri Apr 8 23:27:26 CEST 2016
see below:
Thanks a lot - this way I was able to generate the required files (I did it according to this link:
https://developer.salesforce.com/blogs/developer-relations/2011/05/generating-valid-self-signed-certificates.html )
However, it still does not work. The non-SSL-Websocket example works perfectly fine on localhost and on a remote server but the SSL version doesn't.
I simply ran the server (just as the non-SSL-version) listening on port 1234 and let the client connect via
wss://localhost:1234 (or the respective remote server location)
but immediately get the error message: "ERROR: undefined
DISCONNECTED"
Is there any chance to further track down the connect process in order to figure why it actually doen't - or further hints ?
Thanks !
Alex
--
http://www.carot.de
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
> Gesendet: Freitag, 08. April 2016 um 17:54 Uhr
> Von: "Jason H" <jhihn at gmx.com>
> An: "Alexander Carôt" <alexander_carot at gmx.net>
> Cc: "qt qt" <interest at qt-project.org>
> Betreff: Re: [Interest] qtWebsocket SSL question
>
> Use openssl's cert generation features.
>
> > Sent: Friday, April 08, 2016 at 11:24 AM
> > From: "Alexander Carôt" <alexander_carot at gmx.net>
> > To: "qt qt" <interest at qt-project.org>
> > Subject: [Interest] qtWebsocket SSL question
> >
> > Hello all,
> >
> > I just started investigating websockets with Qt and now have a question regarding this example:
> >
> > http://doc.qt.io/qt-5/qtwebsockets-sslechoserver-example.html
> >
> > I compiled it but encountered the issue of missing files:
> >
> > RCC: Error in 'securesocketclient.qrc': Cannot find file 'localhost.cert'
> > make: *** [qrc_securesocketclient.cpp] Error 1
> >
> > In securesocketclient.qrc the following files are required:
> >
> > <!DOCTYPE RCC><RCC version="1.0">
> > <qresource>
> > <file>localhost.cert</file>
> > <file>localhost.key</file>
> > </qresource>
> > </RCC>
> >
> > and I wonder how or where to generate them and since I have no experience with security and certificates etc. I'd appreciate any comment.
> >
> > Thanks in advance,
> > best
>
More information about the Interest
mailing list