Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keychain Access does not allow exporting Developer ID like the docs say #66

Open
kornelski opened this issue Jan 29, 2023 · 2 comments
Open
Labels
apple-codesign apple-codesign crate and rcodesign CLI tool bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@kornelski
Copy link

The documentation suggests right-clicking a certificate and using Export.

https://gregoryszorc.com/docs/apple-codesign/main/apple_codesign_certificate_management.html#using-keychain-access

In Keychain Access (Version 11.0 (55300.40.2), Ventura) there is no such option when right-clicking the certificate:

Screenshot 2023-01-29 at 02 49 39

There's "File -> Export Items…" option, but it doesn't allow using the .p12 format:

Screenshot 2023-01-29 at 02 52 56

@indygreg indygreg added bug Something isn't working documentation Improvements or additions to documentation apple-codesign apple-codesign crate and rcodesign CLI tool enhancement New feature or request labels Feb 25, 2023
@indygreg
Copy link
Owner

Looks like Apple changed things. Boo. Thanks for the report!

We could likely use https://crates.io/crates/pkcs7 to support reading the .p7b files.

Or it might be best to just wean off recommending using Keychain Access.app. Instead, we can likely use the SecurityFramework APIs to access keychain data directly. I want to say a newer release of the security-framework Rust crate supports this. But I'm not sure about that.

I'd accept PRs to make any improvements in this area.

@petergoldsmith-anzx
Copy link

I think this is a bug in Keychain Access.app that you encountered @kornelski. When swapping between keychains, often the first time you right-click a certificate, there's no export option. However if you just select a few different certificates, then return to the original and right-click, the export options will appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple-codesign apple-codesign crate and rcodesign CLI tool bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants