Hi,

I would like to upgrade my network request to SSL but was not able to find an example on the web how to do this properly. Here is the code I currently have:
Qt Code:
  1. manager = new QNetworkAccessManager(this);
  2. connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
  3. manager->get(QNetworkRequest(url)); // url = http://xyz...
To copy to clipboard, switch view to plain text mode 

I changed it to this:
Qt Code:
  1. QSslConfiguration sslConfiguration(QSslConfiguration::defaultConfiguration());
  2. sslConfiguration.setProtocol(QSsl::TlsV1_2);
  3.  
  4. manager = new QNetworkAccessManager(this);
  5. connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
  6. manager->get(QNetworkRequest(url)); // url = https://xyz...
To copy to clipboard, switch view to plain text mode 

The second part is still working, which is really surprising since I use a self-signed ssl certificate. So I am guessing I am doing something wrong here. Can someone help?

Thanks!