Getting Certificate Values
Obtain all the values associated with a certificate.
Overview
In macOS, you can also dig deeper into the certificate content using a call to the SecCertificateCopyValues(_:_:_:) function:
The return value is a dictionary with keys corresponding to the OID values found in Certificate OIDs. Each value is itself a dictionary that contains information about the certificate’s fields and extensions.