#import "ViewController.h"
static const UInt8 publicKeyIdentifier[] = "com.apple.sample.publickey\0";
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
// NSString * path = [[NSBundle mainBundle] pathForResource:@"2020081014451800096434" ofType:@"cer"];
//1. Load certificate from main bundle
NSString *thePath = [[NSBundle mainBundle]
pathForResource:@"2020081014451800096434" ofType:@"cer"];
//2. Get the contents of the certificate and load to NSData
NSData *certData = [[NSData alloc]
initWithContentsOfFile:thePath];