Reputation: 51
i want to load my Url in web view that shows me error like as NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
Here i write my code like as
NSString *urlAddress = @"https://anyror.gujarat.gov.in/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[self.revenueWeb loadRequest:requestObj];
I do googling for it and fine some solution like as add this code in info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
then i added this code in my info.plist
but it is not working.
Upvotes: 3
Views: 4933
Reputation: 10407
I can't view that site in Safari on OS X v10.9, either. It gives a certificate warning. Same with "openssl s_client".
Error 9813 is errSSLNoRootCert. This indicates that the certificate chain cannot be validated back to a known anchor. This usually means that the server is misconfigured, and is not providing a complete set the intermediate certificates between its cert and a trusted root cert.
See Technote 2232 for additional info.
Upvotes: 1