Alamofire error on SSL certificate

Hi Everyone,

I’d need some help here, I am stuck with this error as below. Thanks!!
My app has SSL pinning which worked the whole time. And now I need to update the new SSL and domain as the server has changed.

I went in and replace cert/ code change that is related to the cert. But it’s still showing me this error. It should just be a simple change.

FAILURE: Error Domain=NSURLErrorDomain Code=-999 “cancelled” UserInfo={NSErrorFailingURLStringKey=https://website/DVSAPI_PROCESS_LOGIN?, NSErrorFailingURLKey=https://website/DVSAPI_PROCESS_LOGIN?, _NSURLErrorRelatedURLSessionTaskErrorKey=(

“LocalDataTask .<2>”

*), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<2>, NSLocalizedDescription=cancelled}

Thanks!! Is this the original post for your change? ios - Swift: How to Make Https Request Using Server SSL Certificate - Stack Overflow

But the post mentioned that this block of code needs to be removed for production… So, if I have to post this app to the appstore (which I have to), then I can’t apply this change to mine… ?

@spacenikki Do you still have issues with this?

@shogunkaramazov No more! Thank you :slight_smile: It works great now!