iOS 9 app download from Amazon S3 SSL error: TLS 1.2 support

前端 未结 5 496
暗喜
暗喜 2020-12-24 01:07

I get

An SSL error has occurred and a secure connection to the server cannot be made.

on iOS 9 if I try to download a file fr

5条回答
  •  情话喂你
    2020-12-24 01:58

    Just posting to point out that the issue with amazon's certificates are they use SHA-1 and the app transport security requires SHA-2/256.

    The fact that NSExceptionRequiresForwardSecrecy works is a bug documented here at apple dev forums. According to the documentation and an Apple engineer in the linked thread a "better" solution would be

    NSAppTransportSecurity
    
        NSExceptionDomains
        
            s3.amazonaws.com
            
                NSIncludesSubdomains
                
                NSExceptionAllowsInsecureHTTPLoads
                
             
         
    
    

    I use the term "better" very loosely and only mean a solution that does not exercise a bug that Apple will eventually fix. Now this is a fix for the certificate issue only :)

提交回复
热议问题