ios - “an ssl error has occurred and a secure connection to the server cannot be made” connecting to Internal Development Server on phone only -
i developed ios app connects internal web server. when used simulator, works fine, when build same app on iphone, gives me error message “an ssl error has occurred , secure connection server cannot made. " why error occurs on iphone not in simulator?
here environment xcode 8.2 ios 10.3 objective c -- client code using ats default afnetworking framework 3.1 web server -- support tls 1.2 web server cert not supporting forward secrecy yet.
could because cert not ats compliant?
after read document apple
<key>nsapptransportsecurity</key> <dict> <key>nsexceptiondomains</key> <dict> <key>your domain</key> <dict> <key>nsincludessubdomains</key> <true/> <key>nsthirdpartyexceptionrequiresforwardsecrecy</key> <false/> </dict> </dict> </dict> my app working on devices. cert on server not forward secrecy ready yet.
Comments
Post a Comment