Returns the identities and certificates in a PKCS #12-formatted blob.
- iOS 2.0+
- macOS 10.6+
- tvOS 2.0+
- watchOS 2.0+
The PKCS #12 data you wish to decode.
A dictionary of key-value pairs specifying options for the function.
On return, an array of
CFDictionarykey-value dictionaries. The function returns one dictionary for each item (identity or certificate) in the PKCS #12 blob. For a list of dictionary keys, see PKCS #12 Import Item Keys.
Your application can import a PKCS #12–formatted blob (a file with extension
.p12) containing certificates and identities, where an identity is a digital certificate together with its associated private key. You can use the
Sec function to obtain
Sec objects (including
Sec objects) for the identities in the blob, together with
Sec objects for the certificates in the blob needed to validate the identity, and
Sec trust management objects needed to evaluate trust for the identities. You can then use the Keychain Services API (see Keychain Services) to put the identities and associated certificates in the keychain.