我的问题与Apple Transport Security(ATS)有关,我感到非常困惑。
我想在我的Swift应用程序中支持所有协议(TLS和SSL的所有版本)。如果我将NSAllowsArbitraryLoads更改为false,则默认情况下,app是否可以在所有协议上运行?还是我必须在配置中指定域并添加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>
Run Code Online (Sandbox Code Playgroud)
我如何检查我的应用程序正在与服务器进行哪种协议的通信?
我已经成功检索到 CDOL1,它是
9F02 06 - Authorised amount of the transaction (excluding adjustments)
9F03 06 - Secondary amount associated with the transaction representing a cashback amount
9F1A 02 - the country of the terminal
95 05 - Status of the different functions as seen from the terminal
5F2A 02 - the currency code of the transaction
9A 03 - Local date that the transaction was authorised
9C 01 - the type of financial transaction
9F37 04 - Value to provide variability …Run Code Online (Sandbox Code Playgroud)