<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeyImportExportParameters",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@SA@SecKeyImportExportParameters"
  },
  "title" : "SecKeyImportExportParameters"
}
-->

# SecKeyImportExportParameters

The legacy import/export parameter structure.

```
struct SecKeyImportExportParameters
```

## Overview

PKCS12 is an abbreviation for Public-Key Cryptography Standard # 12. This standard, by RSA Security, provides a format for external representation of keys and certificates and is described in *PKCS 12 v1.0: Personal Information Exchange Syntax*.

## Topics

### Instance Properties

[`accessRef`](/documentation/Security/SecKeyImportExportParameters/accessRef)

Specifies the initial access controls of imported private keys.

[`alertPrompt`](/documentation/Security/SecKeyImportExportParameters/alertPrompt)

The prompt to display in the secure passphrase alert panel.

[`alertTitle`](/documentation/Security/SecKeyImportExportParameters/alertTitle)

The title to display in the secure passphrase alert panel.

[`flags`](/documentation/Security/SecKeyImportExportParameters/flags)

The bitwise `OR` of zero or more key import/export flags.

[`keyAttributes`](/documentation/Security/SecKeyImportExportParameters/keyAttributes)

A word of bits constituting the low-level attribute flags for imported keys.

[`keyUsage`](/documentation/Security/SecKeyImportExportParameters/keyUsage)

A word of bits constituting the low-level use flags for imported keys.

[`passphrase`](/documentation/Security/SecKeyImportExportParameters/passphrase)

The password to use during key import or export.

[`version`](/documentation/Security/SecKeyImportExportParameters/version)

The version of this structure.

### Initializers

[`init(version:flags:passphrase:alertTitle:alertPrompt:accessRef:keyUsage:keyAttributes:)`](/documentation/Security/SecKeyImportExportParameters/init(version:flags:passphrase:alertTitle:alertPrompt:accessRef:keyUsage:keyAttributes:))

Creates a new import/export parameter structure.



---

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)