Twitter [TWTRURLSessionDelegate] Cancelling API request, SSL certificate is invalid [closed]

I have successfully integrated the twitter SDK, but I get this error when logging in.
[[TWTRTwitter sharedInstance] logInWithCompletion:^(TWTRSession * _Nullable session, NSError * _Nullable error) {

}];

Error Domain=NSURLErrorDomain Code=-999 “cancelled” UserInfo={NSErrorFailingURLStringKey=https://api.twitter.com/oauth/request_token, NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token, _NSURLErrorRelatedURLSessionTaskErrorKey=(
“LocalDataTask <5CF5A152-C31B-4EB8-91FB-6676BC442B16>.<2>”
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <5CF5A152-C31B-4EB8-91FB-6676BC442B16>.<2>, NSLocalizedDescription=cancelled}

…………………….

Leave a Comment