QML WebView, iOS and self signed ssl certificate
Unsolved
QML and Qt Quick
-
Does anyone know how I can make QML WebView (Quick 2) to show a page from a server with a self signed certificate on iOS?
I'am using Qt 5.11.1.
So far I tried:
- Installing the certificate in my iPad 6 and enable full trust (see https://support.apple.com/en-us/HT204477)
- Set a custom QQMLNetworkAccessManagerFactory in the QMLEngine. But the Factory doesn't get used by WebView, because WebView uses Safari, which is a different process. (See https://bugreports.qt.io/browse/QTBUG-43590)
- I tried to set the NSAppTransportSecurity Options in info.plist (see https://stackoverflow.com/questions/32755674/ios9-getting-error-an-ssl-error-has-occurred-and-a-secure-connection-to-the-ser):
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>(mydomain)</key> <dict> <key>NSExceptionRequiresForwardSecrecy</key> <false/> <key>NSIncludesSubdomains</key> <true/> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> </dict> </dict>
WebView always fails to load my page with the message "An SSL error has occurred and a secure connection to the server cannot be made."
I can open the page using Safari.