Skip to content

Commit

Permalink
Certificate chain's are stored in the resource inside the bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Oct 7, 2013
1 parent ee2438b commit 62209f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Tests/AFSecurityPolicyTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ static SecTrustRef AFUTTrustChainForCertsInDirectory(NSString *directoryPath) {
}

static SecTrustRef AFUTHTTPBinOrgServerTrust() {
NSString *bundlePath = [[NSBundle bundleForClass:[AFSecurityPolicyTests class]] bundlePath];
NSString *bundlePath = [[NSBundle bundleForClass:[AFSecurityPolicyTests class]] resourcePath];
NSString *serverCertDirectoryPath = [bundlePath stringByAppendingPathComponent:@"HTTPBinOrgServerTrustChain"];

return AFUTTrustChainForCertsInDirectory(serverCertDirectoryPath);
}

static SecTrustRef AFUTADNNetServerTrust() {
NSString *bundlePath = [[NSBundle bundleForClass:[AFSecurityPolicyTests class]] bundlePath];
NSString *bundlePath = [[NSBundle bundleForClass:[AFSecurityPolicyTests class]] resourcePath];
NSString *serverCertDirectoryPath = [bundlePath stringByAppendingPathComponent:@"ADNNetServerTrustChain"];

return AFUTTrustChainForCertsInDirectory(serverCertDirectoryPath);
Expand Down

0 comments on commit 62209f6

Please sign in to comment.