CFNetwork SSLHandshake failed iOS 9

后端 未结 11 1296
面向向阳花
面向向阳花 2020-11-22 09:38

has anyone with the iOS 9 beta 1 had this issue?

I use standard NSURLConnection to connect to a webservice and as soon as a call is made to the webservice i get th

11条回答
  •  星月不相逢
    2020-11-22 10:29

    After two days of attempts and failures, what worked for me is this code of womble

    with One change, according to this post we should stop using sub-keys associated with the NSExceptionDomains dictionary of that kind of Convention

      NSTemporaryExceptionMinimumTLSVersion
    

    And use at the new Convention

      NSExceptionMinimumTLSVersion
    

    instead.

    apple documentation

    my code

    NSAppTransportSecurity
        
            NSExceptionDomains
            
                YOUR_HOST.COM
                
                    NSExceptionAllowsInsecureHTTPLoads
                    
                    NSExceptionMinimumTLSVersion
                    TLSv1.0
                    NSExceptionRequiresForwardSecrecy
                    
                    NSIncludesSubdomains
                    
                
            
        
    

提交回复
热议问题