asc encryption
asc encryption commands: an app's export compliance (encryption) declarations, their documents and the builds they cover.
asc encryption handles export compliance: the encryption declarations App Store Connect asks for when a build uses encryption, the documents that back them, and which builds a declaration covers. Apps that use no encryption, or only exempt encryption such as HTTPS, don’t need a declaration; see declarations exempt-declare. Picking an Apple team, output, pagination, --confirm and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and the --…-fields flags, which are explained there.
Notes that apply to the whole page:
- A flag marked “Required” is checked before any request; leaving it out exits
2. Where--appis required,ASC_APP_IDcan stand in for it. - Commands that read or create declarations and documents print Apple’s JSON, as described on asc; sections note other output.
- To mark a single build as not using non-exempt encryption, use
asc builds update --build-id "BUILD_ID" --uses-non-exempt-encryption=false(see asc: builds and TestFlight).
asc encryption declarations list --app "1234567890"
asc encryption declarations assign-builds --id "DECL_ID" --build-id "BUILD_ID"| Subcommand | What it does |
|---|---|
| declarations | Manage app encryption declarations. |
| documents | Manage encryption declaration documents. |
declarations
An app’s encryption declarations: the answers about the cryptography it uses, and the builds each declaration applies to.
| Subcommand | What it does |
|---|---|
declarations list |
List encryption declarations for an app. |
declarations view |
View an encryption declaration by ID. |
declarations app view |
View the app for an encryption declaration. |
declarations app-encryption-declaration-document view |
View the document for an encryption declaration. |
declarations create |
Create a new encryption declaration. |
declarations exempt-declare |
Guide local Info.plist exemption for exempt encryption. |
declarations assign-builds |
Assign builds to an encryption declaration. |
declarations list
Lists an app’s encryption declarations.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required unless --next is given. |
— |
--build-id |
Only declarations that cover these builds, comma-separated. | — |
--include |
Adds related resources: app, builds, appEncryptionDeclarationDocument. |
— |
--build-limit |
Caps included builds per declaration (1–50). | — |
--next can’t be combined with --build-id, --include, --build-limit or the fields flags: the links.next URL already carries them.
asc encryption declarations list --app "1234567890" --include appEncryptionDeclarationDocumentdeclarations view
Shows one encryption declaration.
| Flag | What it does | Default |
|---|---|---|
--id |
Encryption declaration ID. Required. | — |
--include |
Adds related resources: app, builds, appEncryptionDeclarationDocument. |
— |
--build-limit |
Caps included builds (1–50). | — |
asc encryption declarations view --id "DECL_ID"declarations app view
Shows the app a declaration belongs to.
| Flag | What it does | Default |
|---|---|---|
--id |
Encryption declaration ID. Required. | — |
asc encryption declarations app view --id "DECL_ID"declarations app-encryption-declaration-document view
Shows the document attached to a declaration.
| Flag | What it does | Default |
|---|---|---|
--id |
Encryption declaration ID. Required. | — |
asc encryption declarations app-encryption-declaration-document view --id "DECL_ID"declarations create
Creates an encryption declaration for an app and prints it.
| Flag | What it does | Default |
|---|---|---|
--app |
The app ID (or ASC_APP_ID). Required. |
— |
--app-description |
How the app uses encryption. Required. | — |
--contains-proprietary-cryptography |
Whether the app contains proprietary cryptography. Required. | — |
--contains-third-party-cryptography |
Whether the app contains third-party cryptography. Required. | — |
--available-on-french-store |
Whether the app is available on the App Store in France. Required. | — |
The three yes/no flags must each be given, even when the answer is no: write them as --flag=true or --flag=false. App Store Connect does not accept a declaration with every cryptography answer false; for an app that only uses exempt encryption, use declarations exempt-declare instead.
asc encryption declarations create --app "1234567890" --app-description "Uses TLS" --contains-proprietary-cryptography=false --contains-third-party-cryptography=true --available-on-french-store=truedeclarations exempt-declare
Sets up the exemption for an app that uses no encryption, or only exempt encryption such as HTTPS: the ITSAppUsesNonExemptEncryption key set to false in its Info.plist.
| Flag | What it does | Default |
|---|---|---|
--plist |
The Info.plist to update with ITSAppUsesNonExemptEncryption=false. |
— |
Notes:
- Without
--plist, it changes nothing and prints, on stderr, the entry to add and the commands to check an uploaded build. - With
--plist, it adds the key or changes it tofalse, keeping the file’s plist format, and reports on stderrAdded ITSAppUsesNonExemptEncryption=false to …orUpdated ITSAppUsesNonExemptEncryption=false in …. If the key is alreadyfalse, the file is left alone and it reportsInfo.plist already sets ITSAppUsesNonExemptEncryption=false: PATHon stderr. A path through a symlink (other than macOS’s own/tmp,/varand/etc), or a directory, is refused. - It changes only the local file and sends nothing to App Store Connect.
asc validatechecks the encryption state of an uploaded build.
asc encryption declarations exempt-declare --plist ./MyApp/Info.plistdeclarations assign-builds
Applies a declaration to builds. Reports Successfully assigned N build(s) to declaration … on stderr and prints declarationId, buildIds and "action": "assigned".
| Flag | What it does | Default |
|---|---|---|
--id |
Encryption declaration ID. Required. | — |
--build-id |
Build IDs to assign, comma-separated. Required. | — |
asc encryption declarations assign-builds --id "DECL_ID" --build-id "BUILD_ID1,BUILD_ID2"documents
The documents that back a declaration, such as an export compliance approval.
| Subcommand | What it does |
|---|---|
documents view |
View an encryption declaration document by ID. |
documents upload |
Upload an encryption declaration document. |
documents view
Shows one declaration document, including its file name and size.
| Flag | What it does | Default |
|---|---|---|
--id |
Document ID. Required. | — |
asc encryption documents view --id "DOC_ID"documents upload
Uploads a file as a declaration’s document and prints the document once the upload is committed.
| Flag | What it does | Default |
|---|---|---|
--declaration |
Encryption declaration ID. Required. | — |
--file |
Path to the document file. Required. | — |
The file must exist and not be empty; a symlink or a directory is refused before anything is sent.
asc encryption documents upload --declaration "DECL_ID" --file ./export.pdf