I have read many questions/answers to this similar problem but unfortunately none of them worked for me. I have a link (cannot be disclosed here for NDA purposes) that is a https but unable to load in my UIWebview. It however loads fine in Safari/Chrome in desktop. The code I use to load it:
NSURL *url = [NSURL URLWithString:@"https://xxx.xxx.xxx/disclaimer.html"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[_myWebView loadRequest:request];
What I tried: I tried loading other https link, (https://www.google.com), it works ok (Google page loaded). But only my particular https is not loading in the webview. I have no idea what else to try so if you have idea what is going on, pls share.
ERROR Log says it's timed out.
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
Just for my case, it appears that the URL is only accessible on simulator since my macbook was connected to the LAN. (URL was only LAN limited). I got mixed results and made me confuse because apparently the UIWebview keeps a cache of the website so subsequent access to it via the wifi makes it available (when in fact it is not).
In short, my problem was not caused by http nor https or any certs related issues. It is merely availability of the URL thru internet/intranet issue.