Get Certificate OID's Values in iOS

Hi all,


I'm developing a iOS app. This app needs get specifics OID's, but I couldn't get these values(STREET, PostalCode, L, ST, S, OU, O, CN).


Do you know if there is something like SecCertificateCopyValues but for iOS? or other function


I've used SecCertificateCopyNormalizedIssuerSequence or SecCertificateCopyNormalizedSubjectSequence and others but those doesn't get the OID's



Thank you! an sorry for my english

Sadly, iOS does not an API for getting detailed information from certifications. The best you can do is call

SecCertificateCopyNormalizedSubjectSequence
and then parse the resulting DER ASN.1 yourself )-:

However you proceed here, I’d appreciate you filing an enhancement request requesting a better API for this. Make sure to include info on why you need to do it. Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Get Certificate OID's Values in iOS
 
 
Q