Hi. I'm giving up on the http communication and I'm now trying to use QSslSockets but again I lack short good example of code, for both server and client.
Does anyone know of such examples (or tutorial?)
Hi. I'm giving up on the http communication and I'm now trying to use QSslSockets but again I lack short good example of code, for both server and client.
Does anyone know of such examples (or tutorial?)
Have you seen the examples that are in the Qt Reference Manual?
yes the code samples there I have seen, but not complete examples. Examples that shows all the handshaking etc.
For example, I have no idea on how to create the certificate either. I just need a simple one.
It's done more or less automatically with the exception of what's explained in QSslSocket::sslErrors()
This is out of scope of using QSslSocket. If you want to use a certificate, you have to create it using regular means (i.e. using OpenSSL commands), it's not something that is done automatically and that's on purpose.For example, I have no idea on how to create the certificate either. I just need a simple one.
try this: http://www.qtsoftware.com/products/a...es/qtsslsocket
..but it is a little bit older and needs some work at.. QtSslSocket => QSslSocket etc.
Bookmarks