0

Please help with this, I'm using the latest IBMMobileFirstPlatformFoundation.framework When try to login to https server.

[[WLAuthorizationManager sharedInstance] login:@"AuthenticateUser" withCredentials:params withCompletionHandler:^(NSError *error){
            if (error != nil) {
                errorHandler(error);
            }else{
                successHandler(nil);
            }
        }];

Below error message is shown.

Thread 1: "A security policy configured with WLAFSSLPinningModeCertificate can only be applied on a manager with a secure base URL (i.e. https)"

1 Answers1

0

I suppose you are using certificate pinning with a http URL. If so, the behaviour is indeed expected.

What is the wlProtocol in your mfpclient.plist ?

If it is http, then the whole point of using certificate pinning is moot since there is no certificate involved in the communication.

Srik
  • 7,907
  • 2
  • 20
  • 29
  • [[WLClient sharedInstance] pinTrustedCertificatePublicKeyFromFile:certPath]; After including this, everything is solved. Thanks for ur replies too. – Thing Thing Dec 20 '20 at 03:38