PKCS12 is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'PKCS12'
#import <PKCS12/PKCS12.h>
NSError *error = nil;
// Parse file
P12 *cert = [P12 p12WithContentsOfFile:@"file.p12" password:@"1" error:&error];
NSLog(@"%@", cert.name);
// Check Revocation Status
dispatch_async_queue(globalQueue, ^{
BOOL isRevoked = [cert syncCheckIsRevoked]; // Power by: even-cheng/p12Checker
});
Magic-Unique, [email protected]
PKCS12 is available under the MIT license. See the LICENSE file for more info.