From 9b6f0879eefbb306276f93dfff32f68e7a334df5 Mon Sep 17 00:00:00 2001 From: David Hernandez Date: Thu, 20 Feb 2014 12:50:25 -0600 Subject: [PATCH] Add additional curl args to debug string when using client certificates for the request. --- MKNetworkKit/MKNetworkOperation.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MKNetworkKit/MKNetworkOperation.m b/MKNetworkKit/MKNetworkOperation.m index 4932304..c0e4379 100644 --- a/MKNetworkKit/MKNetworkOperation.m +++ b/MKNetworkKit/MKNetworkOperation.m @@ -755,6 +755,17 @@ -(NSString*) curlCommandLineString thisFile[@"filepath"], thisFile[@"mimetype"]]; }]; + // Additional curl args for Client Cert Support + if (self.clientCertificate) { + [displayString appendFormat:@" --cert \"%@\"", self.clientCertificate]; + } + if (self.clientCertificatePassword) { + [displayString appendFormat:@" --pass \"%@\"", self.clientCertificatePassword]; + } + if (self.shouldContinueWithInvalidCertificate) { + [displayString appendFormat:@" -k"]; + } + /* Not sure how to do this via curl [self.dataToBePosted enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {