Urban airship ssl exception CFNetwork SSLHandshake failed (-9824)

We have been facing this issue for iOS 9.0.2. please check stacktrace at botttom.

I tried adding in plist but still same issue. 

<key>urbanairship.com</key>

<dict>

<key>NSIncludesSubdomains</key>

<true/>

<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>

<true/>

<key>NSExceptionAllowsInsecureHTTPLoads</key>

<true/>

</dict>

 

Stacktrace:

CFNetwork SSLHandshake failed (-9824)

 CFNetwork SSLHandshake failed (-9824)

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)

[UAHTTPConnection connection:didFailWithError:] [Line 194] ERROR: connection <UAHTTPConnection: 0x12e218a90> didFailWithError: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9824, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x12dcc75d0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://device-api.urbanairship.com/api/user/hHZ7gZvyQ4aEuDxjpK_CPg/messages/, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFNetworkCFStreamSSLErrorOriginalValue=-9824, _kCFStreamPropertySSLClientCertificateState=0, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., _kCFStreamErrorDomainKey=3, NSErrorFailingURLKey=https://device-api.urbanairship.com/api/user/hHZ7gZvyQ4aEuDxjpK_CPg/messages/, _kCFStreamErrorCodeKey=-9824}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://device-api.urbanairship.com/api/user/hHZ7gZvyQ4aEuDxjpK_CPg/messages/, NSErrorFailingURLStringKey=https://device-api.urbanairship.com/api/user/hHZ7gZvyQ4aEuDxjpK_CPg/messages/, _kCFStreamErrorDomainKey=3}

Didn't find what you were looking for?

New post

Comments

5 comments

  • Hi Kiran,

    Usually these types of errors might indicate an issue with your configuration files.

    Could you post what you currently have in your airshipconfig.plist file?

    Comment actions Permalink
    0
  • <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

    <plist version="1.0">

    <dict>

    <key>inProduction</key>

    <false/>

    <key>developmentAppKey</key>

    <string>QaNgUoGjTaapMiu-RtlLmw</string>

    <key>developmentAppSecret</key>

    <string>development secret key</string>

    <key>productionAppKey</key>

    <string>Your Production App Key</string>

    <key>productionAppSecret</key>

    <string>Your Production App Secret</string>

    </dict>

    </plist>

    Comment actions Permalink
    0
  • Kiran,

    Can you confirm that you entered the values for 

    <key>developmentAppSecret</key>

    <string>development secret key</string>

    in your plist? If not, you'll need to input those values into the plist first and foremost.

    Comment actions Permalink
    0
  • Yes. I didn't send it on here since it's supposed to be secret :)

    Comment actions Permalink
    0
  • Thanks Kiran.

    Are you running into these errors when trying to implement the sample app included with the Urban Airship library, or is this with your own app?

    If it's not with the Sample app, could you give that a try and see if you can reproduce that situation?

    Comment actions Permalink
    0

Please sign in to leave a comment.