asc certificates
asc certificates commands: list and inspect signing certificates, create Wallet pass and Apple Pay certificates, generate CSRs, package PKCS#12 identities and check Developer ID certificates.
asc certificates lists the connected Apple team’s certificates and creates Wallet pass and Apple Pay certificates. 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 / --…-fields flags, which are explained there.
Signing certificates are managed by AirBuild: it holds the team’s development and distribution certificates and runbuild --sign signs with them, so they are not created here.
list
List signing certificates.
| Flag | What it does | Default |
|---|---|---|
--certificate-type |
Filter by certificate type(s), comma-separated. | — |
--display-name |
Filter by display name(s), comma-separated. | — |
--id |
Filter by certificate ID(s), comma-separated. | — |
--include |
Include relationships: passTypeId. | — |
--serial-number |
Filter by serial number(s), comma-separated. | — |
--sort |
Sort by key(s), comma-separated: displayName, -displayName, certificateType, -certificateType, serialNumber, -serialNumber, id, -id. | — |
asc certificates listview
View a signing certificate by ID.
| Flag | What it does | Default |
|---|---|---|
--id |
Certificate ID. Required. | — |
--include |
Include related resources: passTypeId. | — |
asc certificates view --id "CERT_ID"developer-id-check
Find Developer ID certificates from the Sub-CA that expires on February 1, 2027.
Certificates from the original Developer ID Certification Authority stop working on February 1, 2027, and .pkg installers signed with them no longer install; replace them with certificates from the G2 authority. The check reads every DEVELOPER_ID_APPLICATION and DEVELOPER_ID_KEXT certificate (and their _G2 types) and gives each a status:
| Status | Meaning |
|---|---|
affected |
Issued by the original authority. |
not-affected |
Issued by G2, a _G2 type, or expires after February 1, 2027. |
likely-affected |
The issuer could not be read and it expires on or before February 1, 2027. |
unknown |
Neither the issuer nor the expiration date could be read. |
evidence names what the status rests on. Developer ID Installer certificates are not in Apple’s API, so they are not checked (notChecked says so); asc pkg-info --path PATH inspects a signed package. actionRequired is true when an unexpired certificate is anything but not-affected. A finding prints a warning and exits 0; with --strict it exits 1 after the report.
| Flag | What it does | Default |
|---|---|---|
--strict |
Exit non-zero when an unexpired certificate is not proven unaffected. | false |
asc certificates developer-id-checkcsr
Generate certificate signing requests (CSR).
csr generate
Generate a private key and CSR.
Runs locally and does not print key material. --key-out and --csr-out must be different paths.
| Flag | What it does | Default |
|---|---|---|
--common-name |
Subject Common Name (CN). | asc |
--country |
Subject country (C). | — |
--csr-out |
CSR output path (PEM). Required. | — |
--email |
Subject email address. | — |
--force |
Overwrite existing output files. | false |
--key-out |
Private key output path (PEM). Required. | — |
--key-size |
RSA key size in bits (e.g., 2048). | 2048 |
--key-type |
Key type: rsa. | rsa |
--organization |
Subject organization (O). | — |
--organizational-unit |
Subject organizational unit (OU). | — |
asc certificates csr generate --key-out "./signing/cert.key" --csr-out "./signing/cert.csr"export
Package a certificate and private key as a protected PKCS#12 identity.
Runs locally: get the certificate from Apple first, then package it with its private key. Accepts DER or PEM certificates, checks that the key matches and, with --csr, the original CSR. It never prints key material or writes the PKCS#12 data to stdout. Replacing an existing file needs both --force and --confirm.
| Flag | What it does | Default |
|---|---|---|
--certificate |
Apple-issued X.509 certificate path (DER .cer or PEM). Required. | — |
--confirm |
Confirm replacement when --force is set. Required with --force. |
false |
--csr |
Optional CSR path to verify against the certificate and private key. | — |
--force |
Replace an existing PKCS#12 identity. | false |
--p12-out |
Destination path for the password-protected PKCS#12 identity. Required. | — |
--password-file |
Protected file containing the PKCS#12 password. Required. | — |
--private-key |
Matching unencrypted RSA or EC private key path (PEM). Required. | — |
asc certificates export --certificate "./push/push.cer" --private-key "./push/push.key" --password-file "./secrets/push.p12.password" --p12-out "./push/push.p12"create
Create a Wallet pass or Apple Pay certificate.
Give a CSR file with --csr, or --generate-csr to make a new private key and CSR first (written to --key-out and --csr-out, both required with it); one of the two is required, and they can’t be combined. The certificate Apple returns pairs with that private key: keep the key out of the repository and logs.
| Flag | What it does | Default |
|---|---|---|
--certificate-type |
Certificate type: PASS_TYPE_ID, PASS_TYPE_ID_WITH_NFC, APPLE_PAY, APPLE_PAY_MERCHANT_IDENTITY, APPLE_PAY_PSP_IDENTITY, APPLE_PAY_RSA. Required. | — |
--common-name |
CSR subject Common Name (CN) for --generate-csr. |
asc |
--country |
CSR subject country (C) for --generate-csr. |
— |
--csr |
CSR file path. Required unless --generate-csr. |
— |
--csr-out |
CSR output path for --generate-csr (PEM). Required with --generate-csr. |
— |
--email |
CSR subject email address for --generate-csr. |
— |
--force |
Overwrite generated CSR/key output files. | false |
--generate-csr |
Generate a private key and CSR before creating the certificate. | false |
--key-out |
Private key output path for --generate-csr (PEM). Required with --generate-csr. |
— |
--key-size |
CSR RSA key size in bits for --generate-csr. |
2048 |
--key-type |
CSR key type for --generate-csr: rsa. |
rsa |
--merchant-id |
Merchant ID resource ID. Required for the APPLE_PAY… certificate types. |
— |
--organization |
CSR subject organization (O) for --generate-csr. |
— |
--organizational-unit |
CSR subject organizational unit (OU) for --generate-csr. |
— |
--pass-type-id |
Pass type ID resource ID. Required for PASS_TYPE_ID and PASS_TYPE_ID_WITH_NFC. |
— |
asc certificates create --certificate-type PASS_TYPE_ID --pass-type-id "PASS_TYPE_ID" --csr "./pass.csr"update
Update a certificate: turn it on or off with --activated.
| Flag | What it does | Default |
|---|---|---|
--activated |
Set activated (true/false). Required. | — |
--id |
Certificate ID. Required. | — |
asc certificates update --id "CERT_ID" --activated truelinks
View certificate relationship linkages.
Relationship linkages of a certificate: IDs only.
links pass-type-id
Get pass type ID relationship for a certificate.
| Flag | What it does | Default |
|---|---|---|
--id |
Certificate ID. Required. | — |
asc certificates links pass-type-id --id "CERT_ID"