<!--
{
  "documentType" : "article",
  "framework" : "Security",
  "identifier" : "/documentation/Security/keychain-import-and-export-options",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Keychain Import and Export Options"
}
-->

# Keychain Import and Export Options

Use these constants when you pass dictionary-based arguments to import and export functions.

## Topics

### Constants

[`let kSecImportExportPassphrase: CFString`](/documentation/Security/kSecImportExportPassphrase)

A passphrase (represented by a `CFStringRef` object) to be used when exporting to or importing from PKCS#12 format.

[`let kSecImportExportKeychain: CFString`](/documentation/Security/kSecImportExportKeychain)

A keychain represented by a SecKeychainRef to be used as the target when importing or exporting.

[`let kSecImportExportAccess: CFString`](/documentation/Security/kSecImportExportAccess)

An initial access control list represented by a [`SecAccess`](/documentation/Security/SecAccess) object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)