Reputation: 1145
I have an app that communicate with a dedicated server, i want to implement a https communication... I'm using sthttprequest wrapper for all my requests, that an example request:
__block STHTTPRequest *up = [STHTTPRequest requestWithURLString:@"http://www.server.com/page.php"];
up.POSTDictionary = @{@"pass":@"xxxx","user":@"username"};
up.completionBlock = ^(NSDictionary *headers, NSString *body) {
};
up.errorBlock = ^(NSError *error) {
};
[up startAsynchronous];
For the server i'll buy a ssl certificate, but how i can implement the https for my client ios app? I'm trying to create the best solution to secure data, so i will not use a self-signed certificate... I have read the vulnerability about "man in the middle" attack.
Upvotes: 0
Views: 124