Skip to content

Import the Developer ID intermediate only when the keychain lacks it - #1011

Merged
davidmckayv merged 1 commit into
mainfrom
david/macos-signing-intermediate
Nov 5, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
david/macos-signing-intermediate

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

The first real Developer ID signing run (dry run) stopped on both Macs before signing anything:

security: SecKeychainItemImport: The specified item already exists in the keychain.

The signing step imports the Developer ID .p12, then Apple's G2 intermediate. The .p12 already carries that intermediate, so the second import fails.

Fix: the import moves into desktop/scripts/import-developer-id-intermediate.sh, which imports the intermediate only when the keychain does not hold it yet, matched by its SHA-1 fingerprint. It works whether or not a .p12 bundles the chain.

Regression check: the credential-free macOS job ("Updater regressions (no Apple access)") now runs the script twice on a throwaway keychain. Run locally on macOS, the old two-import step fails with the exact error above and the new script passes.

After this merges, the signing dry run is rerun from main before 0.3.0 is cut.

The first real Developer ID signing run stopped before signing anything on both Macs:
"SecKeychainItemImport: The specified item already exists in the keychain". The .p12 already
carries Apple's G2 intermediate, and the step imported it a second time.

The import moves into desktop/scripts/import-developer-id-intermediate.sh, which imports the
intermediate only when the keychain does not hold it yet, matched by its SHA-1 fingerprint. The
credential-free macOS check job now runs the script twice on a throwaway keychain, which fails
with the old two-import step and passes with this one.
@davidmckayv
davidmckayv merged commit 5355643 into main Nov 5, 2026
46 of 48 checks passed
@davidmckayv
davidmckayv deleted the david/macos-signing-intermediate branch November 5, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant