When i am trying to hit HTTPS Un trusted site with Restkit POST object, i am getting this error. When i google its says NSURLErrorUserCancelledAuthentication. How to handle this
Set allowsInvalidSSLCertificate to YES on your object manager's HTTPClient.
This doesn't get propagated properly if using CocoaPods.
If this is indeed an issue with AFNetworking, please take it over to their issues or StackOverflow.
@iprebeg, to get this working, I defined:
#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES 1
in the appropriate pch file
for CocoaPods - Pods-AFNetworking-prefix.pch
(if not using CocoaPods, just add that define in your project .pch file)