SecKeyRef publicKeyReference = NULL;
NSMutableDictionary* queryPublicKey;
SecItemCopyMatching((CFDictionaryRef)queryPublicKey, (CFTypeRef *)&publicKeyReference);
publicKeyReference is your public key representation; queryPublicKey is your certificate submission; SecItemCopyMatching is a function that allows you to get the public key from a certificate!
source
share