[Interest] HTTPS with Qt

Larry Martell larry.martell at gmail.com
Thu Oct 6 15:51:56 CEST 2016


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