Results 1 to 4 of 4
  1. #1

    SSLHandshake failed errors on client connection [iOS]

    Hello,
    recently on mobile network while opening connection, I'm getting this continuous errors:

    Code:
    CFNetwork SSLHandshake failed (-9846)
    CFNetwork SSLHandshake failed (-9846)
    CFNetwork SSLHandshake failed (-9806)
    NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)
    and client can not connect.

    on Wi-Fi everything works good.
    what could it be and how to deal with it?

    Lightstreamer iOS Client Library version 1.2.4 build 74.14

    Thanks.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    Hello,

    this error may be caused by an expired or self-signed certificate. If this is the case, the following callback in the LSConnectionDelegate is being called:


    - (void) clientConnection: (LSClient *)client willSendRequestForAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge;


    To accept the certificate you should implement this method with the following call:


    [challenge.sender continueWithoutCredentialForAuthenticationChalleng e:challenge];


    The API documentation for this delegate method provides more options on how to react to this callback. Further information may also be found Apple's Developer Center: Authentication Challenges and TLS Chain Validation

    Hope this helps.
    Best regards,

    Gianluca

  3. #3
    Quote Originally Posted by gianluca.bertani View Post
    Hello,this error may be caused by an expired or self-signed certificate. If this is the case, the following callback in the LSConnectionDelegate is being called:
    - (void) clientConnection: (LSClient *)client willSendRequestForAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge;
    To accept the certificate you should implement this method with the following call:[challenge.sender continueWithoutCredentialForAuthenticationChalleng e:challenge];
    Hello, Gianluca.
    I done this. the delegate method is called, but it doesn't help.
    Does it look like it is asking for some credentials?
    what are they?

  4. #4
    Administrator
    Join Date
    Feb 2012
    Location
    Bologna, Italy
    Posts
    102
    Hello,

    these two error codes (-9806 and -9846, corresponding respectively to errSSLClosedAbort and errSSLBadRecordMac) are reported on the Net for a wide range of issues related to SSL. Our advice is to double check everything is in place, in particular:
    * check that a certificate is not missing from the certificate chain on the server keystore;
    * check that all certificates are valid;
    * if everything is in place and still does not work, try connecting with a device using a different iOS version (e.g. 7 instead of 8).

    It may also be due to a bug in an old version of the Java Virtual Machine: if you are running the server on a JVM anterior to 7u2 this could be the cause, and updating the JVM should solve the problem.

    Let us know if after all this the problem should still persist.
    Best regards,

    Gianluca
    Last edited by gianluca.bertani; February 25th, 2015 at 09:28 AM. Reason: Removed useless suggestion

 

 

Similar Threads

  1. Connection timed out on empty credentials on iOS [iOS]
    By Anatoly Gurfinkel in forum Client SDKs
    Replies: 9
    Last Post: July 6th, 2015, 04:24 PM
  2. Replies: 4
    Last Post: February 27th, 2015, 06:58 AM
  3. iOS Client Library Preview
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: March 28th, 2011, 03:06 PM
  4. web client is not updating , no errors in server console
    By kishorekkk in forum Adapter SDKs
    Replies: 1
    Last Post: April 10th, 2009, 08:33 AM
  5. Licence check failed on HP amd64 server
    By pakse in forum General
    Replies: 2
    Last Post: November 12th, 2007, 05:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:10 AM.
Lightstreamer Logo