The Charlotte iOS Developers Meetup Message Board › Invalid Certificates
| Sean Rhone | |
|
|
It appears that over the weekend my company decided to switch SSL certificate providers and now use GoDaddy; so now when I call my web service using https I am getting an invalid certificate warning.
Tried using the connection:willSendRequestForAuthenticat Anyone have any idea's? |
| Mark Rickert | |
|
If you're using a networking library like AFNetworking or ASIHTTPRequest, its fairly trivial to tell the request to ignore invalid SSL certificates.
I'd recommend using those libraries over trying to mess with core level networking operations. |
|
| Sean Rhone | |
|
|
Thanks for the reply Mark - I have not used those libraries yet and I'm using the core framework, maybe another time.
But I did finally solve my issue with the following -(void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChalleng [[challenge sender] useCredential:[NSURLCredential credentialForTrust:challenge.protectionS } |
| Mark Rickert | |
|
Glad you figured it out.
In AFNetworking, you'd just have to: #define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICA And ASIHTTPRequest you set up your individual request and then do: [request setValidatesSecureCertificate:NO]; |