SecCertificateCreateWithData(kCFAllocatorDefault, ( __bridge CFDataRef) publicKeyContents); Return nil in ios 10 and above where publicKeyContents is bace64Data of public key provided by server using PACS#1