[Interest] HTTPS with Qt

Larry Martell larry.martell at gmail.com
Thu Oct 6 21:35:57 CEST 2016


Yup, that worked find. Easy peasy! Thanks.

On Thu, Oct 6, 2016 at 9:55 AM, Gian Maxera <gmaxera at gmail.com> wrote:
> In the Qt app you just need to change http to https
> No more.
>
>> On 6 Oct 2016, at 14:51, Larry Martell <larry.martell at gmail.com> 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);
>>  networkReply = networkManager.get(request);
>>
>> We need to change this to use HTTPS. We have the needed certs on the
>> server. Can someone please point me at some docs that will help me get
>> the Qt app modified to work with HTTPS. From what I've been able to
>> find I need to install a root certificate, but I don't know what that
>> means or how to do it. Also, what changes do I have to make in the Qt
>> code? Is it simply changing http to https? From a browser that is all
>> I had to do, presumedly because the browser already had the root
>> certificate. Any pointers will be greatly appreciated.
>>
>> Thanks!



More information about the Interest mailing list