How to enable TLS 1.2, 1.1.1.0 and SSL in an iOS app?

My question is about Apple Transport Security (ATS) and I'm too confused.

I want to support all protocols (all versions of TLS and SSL) in my fast application. If I change the value of NSAllowsArbitraryLoads to false, will the application work by all protocols by default? Or do I need to specify the domain in the configuration and add NSExceptionMinimumTLSVersion?

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <false/>
     <key>NSExceptionDomains</key>
<dict>
    <key>your.servers.domain.here</key>
    <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSExceptionRequiresForwardSecrecy</key>
        <false/>
        <key>NSExceptionMinimumTLSVersion</key>
        <string>TLSv1.0</string>
    </dict>
</dict>

And how can I verify that my application is communicating with the server over the protocol?

+4
source share

All Articles