I have https url with self-sign certication in UIWEBView ,but it does not work.
Error is NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)...
how can I to allow any certication in uiwebview by swift
Do you have any idea that fix this problem?
i find a way to do this,but i think this is not a good way.
step 1------use NSURLConnection in override func viewDidLoad(){} section request = NSURLRequest(URL:url)
step 2------ use the NSURLConnection delegate to
it can work
sorry for my poor english skill
This is the Swift 3 approach...
Don't forget to set "Allow Arbitrary Loads" = YES in your .plist file.
You need to bundle your cert with your app. Then, the cert will end up being trusted by app networking components, including your web view.