Skip to content

SocketRocket: In debug mode. Allowing connection to any root cert #492

@mmilen

Description

@mmilen

Hi,

After losing out a user and then login the same user Simperium for Mac OS goes into a loop with Socket Error "Invalid Certificate"

To replicate all without restarting the App:

  1. Connect with a user with call like [self.simperium authenticateWithAppID:@"paper-video-6fd" token:[notification object]]; the token is valid.
  2. Logout user with [self.simperium signOutAndRemoveLocalData:NO completion: ^{
    }];
  3. Connect the same a user with call like [self.simperium authenticateWithAppID:@"paper-video-6fd" token:[notification object]]; the token is valid.

The connection looks OK but the NSLOG keeps printing out : "SocketRocket: In debug mode. Allowing connection to any root cert".

  • (void)webSocket:(SPWebSocket *)webSocket didFailWithError:(NSError *)error starts looping the error is #23556 (Invalid server cert) .

I'm I doing something wrong when disconnecting the client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions