Re: [Interest] HTTPS with Qt

2016-10-06 Thread Larry Martell
Yup, that worked find. Easy peasy! Thanks. On Thu, Oct 6, 2016 at 9:55 AM, Gian Maxera wrote: > In the Qt app you just need to change http to https > No more. > >> On 6 Oct 2016, at 14:51, Larry Martell wrote: >> >> I have a Qt app that sends requests to a server like this: >> >> QString urlStr

Re: [Interest] HTTPS with Qt

2016-10-06 Thread Thiago Macieira
On quinta-feira, 6 de outubro de 2016 16:10:10 CEST Konrad Rosenbaum wrote: > Handle the sslErrors signal of QNAM and check that the error you get is > for the exact root cert that you want. Don't use ignoreSslErrors. There's a good chance you'll get it wrong and thus introduce a security hole.

Re: [Interest] HTTPS with Qt

2016-10-06 Thread Giuseppe D'Angelo
Il 06/10/2016 16:06, Konstantin Tokarev ha scritto: > * If your server is using certificate which is does not have well-known root > CA it the validation chain, you have to add CA certificate manually to prevent > SSL errors. > > * If your server checks client certificates, you have to add client

Re: [Interest] HTTPS with Qt

2016-10-06 Thread Konrad Rosenbaum
Hi, just change "http:" to "https:" and try what happens. If your server cert is signed with a root cert that exists in the system then this will work out of the box. If not you have two options: Handle the sslErrors signal of QNAM and check that the error you get is for the exact root cert tha

Re: [Interest] HTTPS with Qt

2016-10-06 Thread Konstantin Tokarev
06.10.2016, 16:52, "Larry Martell" : > I have a Qt app that sends requests to a server like this: > >   QString urlStr = "http://foo.bar.com/baz";; >   QUrl transferUrl(urlStr); >   QNetworkRequest request(transferUrl); >   networkReply = networkManager.get(request); > > We need to change this to

Re: [Interest] HTTPS with Qt

2016-10-06 Thread Gian Maxera
In the Qt app you just need to change http to https No more. > On 6 Oct 2016, at 14:51, Larry Martell wrote: > > I have a Qt app that sends requests to a server like this: > > QString urlStr = "http://foo.bar.com/baz";; > QUrl transferUrl(urlStr); > QNetworkRequest request(transferUrl); > n

[Interest] HTTPS with Qt

2016-10-06 Thread Larry Martell
I have a Qt app that sends requests to a server like this: QString urlStr = "http://foo.bar.com/baz";; QUrl transferUrl(urlStr); QNetworkRequest request(transferUrl); networkReply = networkManager.get(request); We need to change this to use HTTPS. We have the needed certs on the server. C