---
title: Identities
framework: security
role: collectionGroup
role_heading: API Collection
path: security/identities
---

# Identities

Combine certificates and cryptographic keys into identities.

## Overview

Overview An identity consists of a private key packaged with the certificate that contains and vouches for the corresponding public key. You use the certificate, key, and trust services API to create an identity from a private key and its certificate, or to import an identity from a password-protected PKCS #12 file. You then use the API to extract the key and certificate from the identity. You can also use the keychain services API to store the identity to or retrieve it from a keychain, much as you would the certificate or key by itself.

## Topics

### Essentials

- [Creating an Identity](security/creating-an-identity.md)
- [Storing an Identity in the Keychain](security/storing-an-identity-in-the-keychain.md)
- [SecIdentityCreateWithCertificate(_:_:_:)](security/secidentitycreatewithcertificate(_:_:_:).md)
- [SecIdentity](security/secidentity.md)
- [SecIdentityGetTypeID()](security/secidentitygettypeid().md)

### Identity Import

- [Importing an Identity](security/importing-an-identity.md)
- [SecPKCS12Import(_:_:_:)](security/secpkcs12import(_:_:_:).md)
- [Keychain Import and Export Options](security/keychain-import-and-export-options.md)
- [PKCS #12 Import Item Keys](security/pkcs-12-import-item-keys.md)

### Identity Components

- [Parsing an Identity](security/parsing-an-identity.md)
- [SecIdentityCopyCertificate(_:_:)](security/secidentitycopycertificate(_:_:).md)
- [SecIdentityCopyPrivateKey(_:_:)](security/secidentitycopyprivatekey(_:_:).md)

### System Identities

- [SecIdentityCopySystemIdentity(_:_:_:)](security/secidentitycopysystemidentity(_:_:_:).md)
- [SecIdentitySetSystemIdentity(_:_:)](security/secidentitysetsystemidentity(_:_:).md)
- [System Identity Domains](security/system-identity-domains.md)

### Identity Naming

- [SecIdentitySetPreferred(_:_:_:)](security/secidentitysetpreferred(_:_:_:).md)
- [SecIdentityCopyPreferred(_:_:_:)](security/secidentitycopypreferred(_:_:_:).md)

### Identity Search

- [SecIdentitySearch](security/secidentitysearch.md)

### Creating an Identity for Local Network TLS

- [Creating an Identity for Local Network TLS](network/creating-an-identity-for-local-network-tls.md)
