Where Apple code signing and notarization use cryptography

Apple code signing and notarization use X.509 certificates, CMS signatures, SHA-256 code hashes, RFC 3161 timestamps and ES256 API tokens. This entry lists each place for an inventory.

On this page

Where Apple code signing and notarization use cryptography in your environment

Release engineers and security leads need an inventory entry for Apple code signing and notarization before any post-quantum planning starts. The entry should cover six areas: the certificates and chain of trust, the signature and hash structures inside signed code, the secure timestamps, the notary service and the tickets it issues, the private keys and where they are stored, and the App Store Connect API tokens used for notarization. Assign the entry to the release engineering lead, with security sign-off, because they control the signing identities and the build pipeline that produces them. This matters now because it is the first input to any cryptographic inventory: you cannot judge upgrade needs or vendor statements for a dependency you have not recorded.

For certificates, the entry should record that Apple's documented chain has three levels: a leaf Developer ID Application certificate, an intermediate, and the Apple Root CA. Apple's Developer ID intermediate FAQ says certificates issued from January 27, 2022 come from a newer intermediate expiring September 16, 2031, while the older intermediate expiring February 1, 2027 is still needed for existing certificates. Apple says codesign embeds the full certificate chain in the signature, so user devices do not need the intermediates installed. Record which intermediate each of your active certificates uses, and note that Apple's TN3161 example shows a sha256WithRSAEncryption signature algorithm, so RSA is in the chain today. Apple also states that the details of the chain could change and that developers should use codesign or Xcode rather than encode them in their own products, so confirm any custom tooling against the current Apple documentation instead of a copy of it.

Which Apple code signing and notarization components use which algorithms

This table maps each part of Apple code signing and notarization to what it protects, the algorithm family the Apple sources name, whether it depends on public-key algorithms, and where it is configured. Rows marked as not documented are areas where the Apple sources do not state an algorithm, so confirm those with Apple before you record an answer. Use the table as a starting point for your inventory, then check each row against the Xcode and codesign versions you run.

ComponentWhat it protectsAlgorithm and dependencyWhere it is configured
Developer ID certificatesIdentity of the signing developerX.509 certificates; the Developer ID Application example in Apple TN3161 uses sha256WithRSAEncryption, and the issuer signs with its private keyApple Developer website, Xcode certificate management, or the CSR process
Certificate chain of trustTrust path from the leaf to the Apple Root CAPublic-key signatures at three levels: leaf, Developer ID intermediate, and Apple Root CA; Apple says the chain details could changeEmbedded by codesign in the CMS structure; intermediates are issued by Apple
Code signature structureIntegrity of the signed binaryCryptographic Message Syntax (CMS) structure; the signature itself is public-key based, and Apple says the structure has changed numerous timesProduced by codesign or Xcode; inspect with codesign --display --dump-cms
Code directory hashesIntegrity of code and resourcesSHA-256 for code directories on macOS 10.12 and later, and CodeResources files2 with SHA-256; SHA-1 legacy entries exist only for macOS 10.11 compatibilityGenerated at signing time by codesign or Xcode; Apple silicon code has no SHA-1 directory
Secure timestampsProof of signing time after certificate expiryProtocol based on RFC 3161 against timestamp.apple.com; the sources do not name the signature algorithm used by the timestamp serviceAdded by Xcode automatically or by the codesign --timestamp option
Notarization ticketsGatekeeper approval of a specific code hashSet of cdhash values signed by the notary service; the sources do not name the algorithm of the notary service's ticket signatureIssued by the Apple notary service; attached with stapler or served online
Private keys for signingAbility to sign as the developerKeys generated by the login keychain or held in Apple cloud signing infrastructure; hardware tokens such as PIV smart cards are supported, and the sources do not give key sizesLogin keychain, Xcode, or hardware token configured through macOS PIV support
App Store Connect API tokensAccess to notarization and App Store Connect APIsJWTs signed with ES256 using the downloaded private key; most tokens expire within 20 minutesApp Store Connect API key settings and the token generation step in your automation
TLS in Apple notary and timestamp servicesConfidentiality and integrity of service connectionsThe sources do not state the TLS key exchange or signature algorithms for these services; Apple's quantum-secure guide does not cover code signing servicesApple-managed endpoints; confirm with Apple, and check the macOS 26 TLS defaults only for URLSession and Network framework traffic

Which protocols Apple code signing and notarization use

Apple code signing and notarization rely on a few distinct protocols and data structures, each selected by a specific tool or setting. Knowing which one carries which data tells you where public-key cryptography is exercised and where to look when you inventory the flow.

Secure timestamp over RFC 3161

Developer ID signing needs a secure timestamp, which Xcode adds automatically or the codesign --timestamp option requests. codesign contacts timestamp.apple.com using a protocol based on RFC 3161, and the timestamp is what lets macOS check the Developer ID certificate was valid at signing time. Confirm which tool adds the timestamp in your build, and check that outbound access to timestamp.apple.com is allowed from build hosts.

TN3161 certificates

Cryptographic Message Syntax inside signatures

A code signature is internally a Cryptographic Message Syntax (CMS) structure. You can extract it with codesign --display --dump-cms, and codesign embeds the full certificate chain so user devices do not need the code signing intermediates installed. Use this dump when you need to confirm the signature format and certificate chain in a given build, and do not hard-code these details, because Apple says the structure has changed numerous times.

TN3161 certificates

Notary service over HTTPS

The notary service accepts submissions through the HTTPS Notary API, and notarytool, Xcode and other clients call it. Apple requires a Developer ID certificate, the Hardened Runtime and a secure timestamp before submission. The notary service returns a ticket containing signed cdhash values, which you can check against the code directory hash. Confirm which client in your pipeline makes these calls and that its network path allows them.

Notarization docs

Ticket retrieval through CloudKit on port 443

When the stapler tool attaches a notarization ticket, it downloads the ticket through CloudKit on port 443. Stapling lets Gatekeeper verify the software offline, since otherwise the ticket is checked online. If your build or install hosts run without outbound internet access, plan for stapling in the build step and confirm that port 443 to CloudKit is reachable where stapling runs.

Notarization workflow

ES256 tokens for App Store Connect API

Automated notarization and App Store Connect API calls authenticate with JWTs that must be signed with ES256, using the private key downloaded from App Store Connect. Most tokens must not live longer than 20 minutes. Confirm which key your automation uses, store it in your secrets platform, and rotate it on your own schedule.

App Store Connect tokens

Which certificates and keys sit in the Developer ID chain

The Developer ID Application leaf certificate is the certificate that identifies your organization as the signer of your software. Apple describes the standard code signing chain as three levels, with the leaf at the bottom. You obtain the leaf through the Apple Developer website, either by creating a certificate signing request (CSR) on a Mac and uploading it, or through Xcode certificate management. Apple's TN3161 example dump shows a Developer ID Application certificate with the signature algorithm sha256WithRSAEncryption and the issuer Developer ID Certification Authority.

  • Signature algorithm: The TN3161 example shows sha256WithRSAEncryption for the leaf signature, which is an RSA signature with a SHA-256 digest.
  • Issuance path: Created through the Apple Developer website, either from a CSR generated on a Mac or through Xcode.
  • Validity: Apple says these certificates are typically valid for about a year, so renewal is a recurring task.
  • Who rotates it: The account holder or a team member with permission to manage certificates in the Apple Developer account renews and replaces the leaf.
  • Expiry behavior: macOS checks that the certificate was valid at the secure timestamp time, so signed software keeps running after the leaf expires.

Confirm the exact leaf expiry date and the signing identity in each of your Apple Developer accounts before planning any rotation.

How administrators and build systems reach notarization and App Store Connect

Administrators and build systems reach the Apple notary service in two main ways. The first is notarytool, Apple's command line utility, which authenticates either with an Apple ID plus an app-specific password or with a keychain profile saved by xcrun notarytool store-credentials. In the keychain profile case, the credentials sit in the login keychain of the machine that runs the build, so the protection of that keychain and of the account that unlocks it is the control to review. Apple's documentation describes these as the supported notarization workflow alongside Xcode and the Notary API, and the authentication material is the part to inventory: who holds the app-specific password, which Mac stores each keychain profile, and whether any CI runner keeps one on disk.

The second path is the App Store Connect API. Apple states that JWTs for this API must be signed with ES256 using the private key downloaded from App Store Connect, and that most tokens must not live longer than 20 minutes. Build systems that mint these tokens hold that private key, so its storage, rotation and access list belong on the inventory. The signing algorithm in this path is elliptic-curve, which matters when you later assess what depends on elliptic-curve keys, and the 20-minute ceiling limits how long a stolen token stays useful, though it does not limit the exposure of the key itself.

The sources listed on this page do not describe an administrative web interface for the notary service or for App Store Connect used in this way, so do not assume one exists in your environment. Confirm with Apple, through your Apple Developer account contacts or Apple's developer support, which administrator interfaces, roles and access methods apply to your team, and whether any of them use cryptography beyond the paths above.

Which update and ticket channels depend on Apple signing

Apple code signing and notarization feed several distinct channels: the online notarization ticket, the stapled offline ticket, the code directory hashes the ticket signs, and the secure timestamp that keeps software valid after certificate expiry. Each one is controlled by a different party, so an inventory should record them separately.

Online notarization ticket for Gatekeeper

The notary service publishes a notarization ticket online, and Gatekeeper checks it when a user opens Developer ID software. Apple operates the notary service, so the customer does not configure its algorithms or key material. For each release, confirm that the build went through notarization and that the Gatekeeper check succeeds on a test machine running the target macOS version.

Notarization docs

Offline ticket attached by stapler

The stapler tool attaches the notarization ticket to the app or disk image so that offline checks can succeed without contacting Apple. Stapling is a separate step from submission, and it must be repeated for every artifact that is redistributed. Verify that stapled artifacts pass validation with no network connection, and record which packaging step performs the stapling.

Notarization workflow docs

Code directory hashes the ticket signs

A notarization ticket is a set of cdhash values signed by the notary service, and each cdhash is the hash of a code directory. Because the code directory covers the signed content, any change to the binary changes the cdhash and invalidates the ticket for that build. Keep the cdhash of each shipped binary in release records so it can be matched against the ticket.

Code signing hashes note

Secure timestamp for expired certificates

Developer ID signing requires a secure timestamp from timestamp.apple.com, which codesign contacts using a protocol based on RFC 3161. macOS checks that the Developer ID certificate was valid at that timestamp, so software keeps running after the certificate expires. Confirm that release builds include a timestamp by inspecting the signature, and do not treat a missing timestamp as a minor warning.

Code signing certificates note

Apple-controlled services not configurable

The notary service and the timestamp server are operated by Apple, and customers cannot change their algorithms, key sizes or certificate chains. Record them as external dependencies with no local configuration option, and ask Apple or your account contact about their cryptographic plans rather than assuming a setting exists. The sources do not describe a separate firmware signing scheme for this product.

Code signing process guide

What to record for each Apple signing item in the inventory

This table lists the fields to capture for each Apple code signing or notarization item, such as a Developer ID certificate, a notarytool credential or an App Store Connect key. Use it as the template for your inventory, and treat fields marked as vendor-only as questions to put to Apple. Dates and issuer names are taken from Apple's published pages as of 2026-12-04.

FieldWhat to recordSource or who answers
Product and componentThe app or tool that signs, such as a release pipeline using codesign, Xcode or notarytoolYour team
macOS or Xcode versionThe macOS and Xcode versions used to sign and notarize, since code signature structure has changed over timeYour team, checked against Apple TN3126
OwnerThe named person or team responsible for the certificate, key or credentialYour team
LocationLogin keychain, hardware token such as a PIV smart card, or Apple cloud-managed signingYour team, per Apple TN3161
Algorithm and key sizeRecorded from the certificate, for example sha256WithRSAEncryption for the Developer ID example in TN3161, plus the key sizeRead from the certificate with Keychain Access or openssl; Apple does not publish key sizes for all items
IssuerThe intermediate that signed the certificate, such as Developer ID Certification Authority, and the root it chains toApple PKI page and TN3161
Expiry dateCertificate end date; Developer ID G2 intermediate expires 09/17/2031 and G1 expires 02/01/2027 per Apple's PKI pageApple PKI page, fetched 2026-12-04
Configurable or fixed by AppleWhether you can change the setting, or whether Apple defines it (for example the chain structure and the SHA-256 code directory)Apple TN3161 and TN3126; confirm changes with Apple
Confidentiality period of signed dataHow long the signed software or notarization record must stay confidential, which sets the risk horizonYour team, based on your data and legal requirements; Apple does not answer this
Post-quantum support statusWhether the item supports post-quantum signatures today and any Apple timelineApple, through its developer and support channels; the quantum-secure guide does not cover code signing

Which Apple signing items depend on public-key algorithms

Several items in Apple's code signing and notarization flow depend on public-key algorithms, and release engineers should list them before anything else. The first is the X.509 certificate chain. Apple's TN3161 example shows a Developer ID Application certificate whose signature algorithm is sha256WithRSAEncryption, issued by the Developer ID Certification Authority. Apple describes a three-level chain: a leaf certificate, an intermediate, and the Apple Root CA, which operating systems trust implicitly. Each link is a public-key signature by the level above it, so the RSA signatures on these certificates belong on the inventory.

The second item is the code signature itself. Apple says a code signature is internally a Cryptographic Message Syntax (CMS) structure, which you can extract with codesign --display --dump-cms. codesign embeds the full certificate chain in that structure, so the signing key's public-key operation sits inside it. The secure timestamp, requested from timestamp.apple.com through an RFC 3161-based protocol, is a separate signed token and belongs in the same review. The third item is the App Store Connect API. Apple states that JWTs used for that API must be signed with ES256, using the private key downloaded from App Store Connect, and that most tokens must live no longer than 20 minutes. The notary ticket, which is a set of signed cdhash values, is the fourth item and should be treated as a public-key signature made by the notary service.

The SHA-256 code directory and the resource hashes in CodeResources are not public-key algorithms. They are hashes, and the public-key signatures above cover them. Apple's TN3126 also records legacy SHA-1 hashes in the older files dictionary and a legacy SHA-1 code directory in some builds, which are hashes only. For the algorithm and parameter detail behind the RSA and elliptic-curve items, see the sibling page on RSA and elliptic-curve dependencies. Confirm with Apple which certificate and signing algorithms your toolchain currently produces, since Apple notes the structure of code signatures has changed several times.

How to gather the Apple signing inventory data yourself

This sequence lets release engineers and security leads record which certificates, keys, notarization credentials and toolchain versions their Apple signing uses today. The output is a dated inventory that can be checked against Apple's published PKI and notarization documents, and questions for Apple about anything the commands cannot show.

  1. Dump the code signature of a signed build

    On a Mac, pick a recent Developer ID-signed build of your app and run codesign --display --dump-cms against it. Apple describes the code signature as a Cryptographic Message Syntax structure, and this command extracts it, including the full certificate chain that codesign embeds. Save the output with the build version and date. The step is done when you can see the signing certificate chain and the signature structure for that build. Check the codesign man page on your macOS version, since Apple notes that the structure of a code signature has changed several times.

  2. Inspect the signing certificates and key storage

    Open each leaf certificate found in the dump in Keychain Access, or use the Apple tools named in TN3161 to read its details, including the signature algorithm and issuer. For a Developer ID Application certificate, record the signature algorithm, the issuer and the validity dates. Also record where each private key lives: the login keychain, a cloud-managed signing setup, or a PIV smart card or other hardware token, which Apple says macOS supports. The step is done when every signing certificate and its key location is in your inventory.

  3. List the Developer ID intermediates and check expiry

    Identify which Developer ID intermediate issued each signing certificate, using the chain from step one. Apple's Developer ID intermediate FAQ describes an intermediate issued from January 27, 2022 that expires on September 16, 2031, and an older intermediate that expires February 1, 2027 and is still needed for existing certificates. Compare the intermediates you found against Apple's PKI page, which lists Developer ID G1 and G2 with their expiry dates as of the date it was fetched. Note any certificate that depends on the older intermediate. The step is done when each intermediate is matched to a listed expiry date.

  4. Record notarization history and credentials

    Run xcrun notarytool history against the credentials your team uses, or check the keychain profile created with xcrun notarytool store-credentials, to see which notarization submissions have been made and under which identity. Record whether authentication uses an Apple ID with an app-specific password or a keychain profile, since Apple documents both. Note which tooling submits to the notary service, whether Xcode, notarytool or the Notary API. The step is done when you have the submission history, the authentication method and the list of tools that submit builds.

  5. Review the App Store Connect API key list

    In App Store Connect, open the team's API key list and record every key that can sign or submit, along with its role, creation date and the owner responsible for it. Apple states that App Store Connect API JWTs are signed with ES256 using the downloaded private key, and that most tokens must not live longer than 20 minutes, so note which pipelines hold these keys and where they are stored. The step is done when each key has an owner, a role and a storage location recorded.

  6. Record the Xcode and macOS versions in use

    Note the Xcode version and macOS version on each signing machine and on each CI runner that signs or notarizes, using xcodebuild -version and sw_vers. Apple's code signing structure has changed over time, and its notes on SHA-1 and SHA-256 code directories depend on the targeted macOS version, so the toolchain version is part of the record. The step is done when every signing and notarizing host has a recorded Xcode and macOS version with the date it was checked.

  7. Put the open questions to Apple

    Some points cannot be read from the commands above, including whether Apple plans post-quantum signatures or developer certificates for code signing and notarization. Apple's quantum-secure guide, checked on 2026-12-04, does not mention code signing, notarization, Developer ID certificates or any roadmap for them. Send Apple a written question covering post-quantum support for these services, planned changes to Developer ID certificate algorithms, and the timing of any change to the notary service. Record the date, the answer and the contact. The step is done when each open question has a dated written reply or a note that none has been given.

Questions engineers ask about Apple code signing cryptography

Is Apple code signing quantum safe?

Apple's published sources do not establish that Apple code signing is quantum safe, and they do not claim it is. The code signing and notarization documentation describes X.509 certificates, which Apple's TN3161 example shows using sha256WithRSAEncryption, along with a secure timestamp and a notarization ticket built from cdhash values. Apple's quantum-secure guide, checked on 2026-12-04, covers TLS, VPN, SSH and CryptoKit, and it does not mention code signing, notarization, Developer ID certificates or any roadmap. Treat the RSA-based certificate chain as the current state of the record, and confirm any post-quantum signature plans directly with Apple.

Which macOS and Xcode versions should I record for the inventory?

Record the macOS version of every build host, the Xcode version used to sign and notarize, and the codesign and notarytool versions those tools report. Apple's TN3126 says code built for macOS 10.12 or later uses a single SHA-256 code directory, code that includes macOS 10.11 also carries a SHA-1 legacy code directory, and Apple silicon code never includes the SHA-1 directory. Because Apple states that the structure of a code signature has changed several times and may change again, the signing toolchain version is part of the evidence. The sources listed on this page do not map specific Xcode releases to specific algorithm behavior, so confirm that mapping with Apple's release notes for each toolchain you run.

Does Apple charge extra for code signing or notarization?

The sources listed on this page do not state a price for Apple code signing or notarization, so no cost figure can be given here. Developer ID signing and notarization are tied to an Apple Developer account, and certificates are typically valid for about a year, which means renewal recurs. The cost drivers to confirm are the Developer account enrollment, the number of Developer ID certificates you hold, the renewal cycle, and whether your build pipeline needs hardware tokens or additional infrastructure. Ask Apple or your account representative for the current account terms in writing before budgeting.

What breaks if a Developer ID certificate expires?

Apple says macOS checks that the Developer ID certificate was valid at the secure timestamp time, so software already signed with a timestamp keeps running after the certificate expires. What stops is new signing: a certificate past its expiry cannot sign new builds, and a fresh certificate must be issued and used for future releases. Apple's intermediate FAQ also notes that certificates from January 27, 2022 chain to a newer intermediate expiring September 16, 2031, while the older intermediate expiring February 1, 2027 is still needed for existing Developer ID certificates. Track every certificate and intermediate expiry date in your inventory, and confirm the renewal steps with Apple's Developer ID documentation.

What should I ask Apple about post-quantum code signing?

Ask Apple whether a post-quantum signature option is planned for Developer ID certificates, for the notary service, and for the codesign tool, and ask for the timeline and any transition guide in writing. Ask whether the notary service will accept post-quantum or hybrid signatures and how existing RSA-based Developer ID certificates will be handled. Ask whether a secure timestamp authority will support newer algorithms, since Apple says it uses an RFC 3161 based protocol. Also ask which notarization and code signing components are covered by Apple's quantum-secure statements, because the guide does not list them. Record each answer with its date, the requesting party and the Apple reference.

Can we do the Apple signing inventory in-house, or do we need outside help?

An in-house team can complete the inventory if it has access to the build hosts, the keychain and certificate records, and the notarytool credentials. The work is mostly documentation: listing each signing identity, certificate and intermediate, the keychain or hardware token that holds each private key, the toolchain versions, and the notarization workflow. Apple says a private key can sit on a PIV smart card and that cloud-managed certificates keep keys in Apple's infrastructure, so each key location must be recorded separately. Outside help is useful when the signing setup spans many teams, uses hardware tokens across sites, or needs an independent review of the evidence. DeployOpen plans and documents this kind of inventory as a fixed-scope engagement, with scope agreed in writing before work starts.

How DeployOpen helps build a cryptographic inventory for Apple signing

DeployOpen builds the inventory as a fixed-scope piece of work, starting from how your team signs, notarizes and distributes macOS software. The inventory records which certificates, keys, hashes and notary tickets your pipeline depends on, so your team can check each dependency against Apple's current documentation.

How we scope

  • The written scope lists which signing tools, notary paths and certificate types are included, such as Xcode, codesign, notarytool and the Notary API.
  • We confirm which Developer ID certificate generations and intermediates your releases use, including the 2031 and 2027 expiries Apple lists.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing support is available as a retainer.

How we build

  • We record where each signature is produced, including the CMS structure, the certificate chain and the secure timestamp from timestamp.apple.com.
  • We map each key to its storage location, whether the login keychain, a PIV smart card or Apple's cloud signing infrastructure, and note who controls it.
  • We trace the hash algorithms in use, SHA-256 code directories and SHA-1 legacy directories, and the App Store Connect ES256 keys used for notarization access.

How we hand over

  • The inventory is delivered as a document listing each dependency, its source in Apple's documentation and the date that source was checked.
  • Each item is marked as confirmed, inferred or to be confirmed with Apple, so unsupported statements are not carried into your records.
  • We walk your release engineers through the inventory so they can update it when Apple changes certificates, tools or notary behavior.

How we support

  • Retainer support can refresh the inventory when Apple publishes new certificate generations, notarization changes or post-quantum guidance for signing.
  • We can retest the signing and notarization pipeline after changes so the inventory matches what your builds actually produce.
  • Questions Apple has not answered, such as post-quantum signature support for Developer ID, are logged for confirmation with Apple rather than assumed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.