Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML WebView, iOS and self signed ssl certificate



  • 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:

    	<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.


Log in to reply