Monday, 24 September 2018

Cordova SSL Error with Certificate Transparency in iOS 10.3

After enabling certificate transparency in Ionic application config file, AJAX calls started failing for iOS 10.3 with SSL error. However, it is working without any issues in iOS 11 and greater. Connection with server works fine with native iOS application, Angular Web Application. It fails only in Cordova compiled application.

Configuration which results in failed AJAX communication

<access minimum-tls-version="TLSv1.2" origin="https://example.com" requires-certificate-transparency="true" requires-forward-secrecy="false" />

Communication works with following setting in XCode

<key>NSExceptionDomains</key>
    <dict>
        <key>example.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>

In network logs, it seems application is sending UNKNOWN during SSL handshake.



from Cordova SSL Error with Certificate Transparency in iOS 10.3

No comments:

Post a Comment