Class

SecCertificate

An abstract Core Foundation-type object representing an X.509 certificate.

Declaration

class SecCertificate

Overview

A SecCertificate object for a certificate that is stored in a keychain can be safely cast to a SecKeychainItem for manipulation as a keychain item. On the other hand, if the SecCertificate is not stored in a keychain, casting the object to a SecKeychainItem and passing it to Keychain Services functions returns errors.

See Also

First Steps

Getting a Certificate

Obtain a certificate from an identity, from DER-encoded data, or from the keychain.

Storing a Certificate in the Keychain

Store a certificate in the keychain for safekeeping.

func SecCertificateGetTypeID() -> CFTypeID

Returns the unique identifier of the opaque type to which a certificate object belongs.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software