Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Add additional curl args to debug string when using client certificates for the request. #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions MKNetworkKit/MKNetworkOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down