Closed ning-echonn closed 4 years ago
Oh, I see.
NSString *cerPath = [[NSBundle mainBundle] pathForResource:@"ca" ofType:@"der"];
NSData *cerData = [NSData dataWithContentsOfFile:cerPath];
CFDataRef certDataRef = (__bridge CFDataRef)certData;
SecCertificateRef certRef = SecCertificateCreateWithData(kCFAllocatorDefault, certDataRef);
id certificate = (__bridge id)certRef;
transport.pinnedCertificates = @[certificate];
Hi, I have a problem about MQTTWebsocketTransport : What is the item type of its property "pinnedCertificates"?
@property (strong, nonatomic) NSArray *pinnedCertificates;
Show my code:
it will crash, because the line 1518 of SRWebSocket.m show the error: EXC_BAD_ACCESS (code=1, address=0x7feaaec00000)
So, anyone tell me how to solve?