Я получаю эту ошибку
The certificate for this server is invalid. You might be connecting to a server
that is pretending to be "server addres goes here" which could put your
confidential information at risk."
Я использую этот метод:
[NSURLConnection sendSynchronousRequest:request
returningResponse:&response
error:&error];
Как я могу это исправить?
Я пробовал этот код:
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
delegate:self];
но затем я получаю EXC_BAD_ACCESS в методе didReceiveResponse.