Hi there!
I’m developing an RSS app, which fetches feeds from unknown sources. Most of the websites fail, even if I have NSAllowsArbitraryLoads = true;
Diagnostics example:
nscurl --ats-diagnostics --verbose http://www.kathimerini.gr/rss
Allow All Loads
ATS Dictionary:
{
NSAllowsArbitraryLoads = true;
}
Result : FAIL
Error : Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “www.kathimerini.gr” which could put your confidential information at risk." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x7fecc2d0e9d0>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, NSErrorPeerCertificateChainKey=(
"<cert(0x7fecc3801200) s: *.kathimerini.gr i: *.kathimerini.gr>"
), NSUnderlyingError=0x7fecc2d167f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x7fecc2d0e9d0>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9813, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9813, kCFStreamPropertySSLPeerCertificates=(
"<cert(0x7fecc3801200) s: *.kathimerini.gr i: *.kathimerini.gr>"
)}}, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “www.kathimerini.gr” which could put your confidential information at risk., NSErrorFailingURLKey=https:/How can I bypass this? I don't have access to the servers of the feeds of course
best!
d.