Hi!
I've a problem with ATS.
I'm using XCode 9.1, my Development Target is 11.0.
I'm developing using react-native 0.49
My program is doing a fetch to a https resource which has a valid (google chrome) letsencrypt certificate.
The fetch only works, when NSAllowsArbitraryLoads is set to true, when set to false the fetch is blocked?
I've made the following settings within my info.plist:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSExceptionDomains</key>
<dict>
<key>xxxx.no-ip.org</key>
<dict/>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>meetbecky.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
</dict> </dict> </dict>
I'm doing some tests using a temporary domain. This domain also has a valid letsencrypt certificate. In this case everything works fine.
The only difference I can see between both hosts is that the test domain is a single domain host, the production host is a multi domain host.
Both certificates are new (SHA-256 with RSA-Encrytion) and are accepted by all major Browsers (Chrome, Safari) without any difficulty!
Anybody a suggestion?
The Debug from the Simulator:
CFNetwork Diagnostics [1:1187] 12:38:08.258 {
Did Fail: (null)
Loader: <CFMutableURLRequest 0x6000003bed80 [0x1125f1960]> {url = https:/
Error: Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9802, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802}
Best regards,
Harry