iOS - Произошла ошибка SSL, и невозможно установить безопасное соединение с сервером. NSURLConnection завершено с ошибкой - код -1200 - PullRequest
0 голосов
/ 02 марта 2020
    I'm very rarely getting this error, An SSL error has occurred and a secure connection to the server cannot be made.
    **Device: iPhone7
    OS: 11.0.1
    Language: Objective C and Swift**.

Раньше я использовал NSURLConnection, теперь я изменился на NSURLSession

 ATS configuration: This is the modified configuration as per the accepted answer for the similar question. But still am getting this SSL error rarely.  
        <key>NSAppTransportSecurity</key>
            <dict>
                <key>NSAllowsArbitraryLoads</key>
                <true/>
            </dict>
    Server TLS version 1.2

    The question is, this error is not so common, but occurs atleast once in 100 http requests.
    I have seen a lots of answers which tells about the ATS configuration. tried almost everything but of no use.
    Anyone got into this situation and found a workaround.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...