I try connect to https server, but I get error -1012(NSErrorFailingURLKey). If I try connect to http then all is good. But I should connect to https. What does it can be? I tried connect via AFNetworking v1.0 and v2.0. I used AFHTTPRequestOperation, AFHTTPRequestOperationManager, AFHTTPClient and other. P.S. When I try connect to https via firebug, all is good. I mean, server works good.
Try with #define _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_ 1
to allow invalid or self signed certificates.
By default, they are not allowed, see AFURLConnectionOperation.h
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With