-
Notifications
You must be signed in to change notification settings - Fork 15
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
Signing Is Failing for P12 With Chain File #16
Comments
@sheldonhull thanks for reporting --and great info! Can you additionally post your goreleaser file (or at least a sanitized version of it), this would give me a better idea of the kind of binary that was generated to help replicate on my end. In the meantime I'll take a closer look with what you posted and try to get this replicated. |
Here you go, https://github.com/DelineaXPM/dsv-cli NOTE open pr. That branch is the one you'd be best to use as it's the most updated goreleaser file. The project also is fully self setup with devcontainer so feel free to pop it open in that if you like. 💪 It's a public repo. Mage tasks are included and goreleaser config if you want to run it locally and see what you get with your own certs. I appreciate any help! Love this project. I want a windows one now cause it has me spoiled. 😆 |
@wagoodman bump. Just making sure the response was seen. Not urgent but would like to know if anything I can do to resolve someday. Cheers! |
Thanks for the info, though I'm surprised I'm no closer to figuring this out --I've tried a couple different approaches so far to try and reproduce the issue locally without success yet. I'm starting to wonder if it's something unique about the certificate material itself, but I can't think of what that might be. |
@sheldonhull do you want to connect in the anchore community slack to troubleshoot in realtime / coordinate a session? |
I struggled with these two errors myself, but figured out a solution. Posting it here in case it helps others. I noticed when running
And my signed binaries kept failing notarization with the same two errors:
In Keychain Access, I saw that there was an extra "Developer ID Certification Authority" (the issuer of my Developer ID Application cert) in my "System" keychain, which was missing from my "System Roots". I don't recall if I had manually installed that cert from https://www.apple.com/certificateauthority/ (I was trying many things). Quill will default to
The warning disappeared and I was able to sign/notarize my binary. |
Note, a lot of headache probably would have been avoided if #8 was implemented and root/intermediate certs were baked into the quill binary. |
What Happened
I'm trying to work through the signing process with a developer id application cert (p12).
I've followed the directions and am not able to get notarization to correctly work.
The signing continues without error, but upon notarization I get a few errors.
How to reproduce it (as minimally and precisely as possible):
codesign -vvv --deep --strict $artifact
returnsCSSMERR_TP_NOT_TRUSTED In architecture: x86_64
.spctl -vvv --assess --type exec $artifact
returnsCSSMERR_TP_NOT_TRUSTED
.The notarization attempt responds with 2 errors in the json response:
quill describe
against my original and-with-chain
p12 file:* unable to parse single-arch binary: unable to parse macho formatted file with blacktop: invalid magic number in record at byte 0x0
.Other Troubleshooting Steps I've Taken
Summary
I've gotten quill to mark the file as signed with a non-apple developer cert (pfx/p12), but what I understand is that for mac Gatekeeper to allowlist the app I need to use only an Apple cert. I've iterated on this for days and not sure where else to go with it.
Troubleshooting Script in Progress
The text was updated successfully, but these errors were encountered: