I am getting the following error:
Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “api.linkedin.com” which could put your confidential information at risk." UserInfo=0x1c53e630
This works fine on simulator but on device it is giving above mentioned error.
Please help to rectify it.