mirror of
https://github.com/SignTools/SignTools.git
synced 2026-05-04 06:10:43 +03:00
[GH-ISSUE #252] github action failed with "no development certificate found" #80
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SignTools#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abdullah5490 on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/SignTools/SignTools/issues/252
I tried basic troubleshooting first
Describe the bug
I deployed signtool app via signTool-CI builder on heroku few minutes ago. When app execute, I can see that the job name "sign" is failed under "github action" with the following log, where I've provided developer certificate and apple account credential to use for profile import during app deployment on heroku. there is no error in app on heroku but github action failed with "no developer certificate found".
Logs
21
(node:2347) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit
22
(Use
node --trace-warnings ...to show where the warning was created)23
Download finished!
24
Traceback (most recent call last):
25
File "/Users/runner/work/signtoolios/signtoolios/./sign.py", line 1173, in
26
run()
27
File "/Users/runner/work/signtoolios/signtoolios/./sign.py", line 1081, in run
28
raise Exception("No development certificate found, aborting.")
29
Exception: No development certificate found, aborting.
@ViRb3 commented on GitHub (Oct 4, 2022):
Hey. The error says it all, your p12 does not contain a developer certificate, so it cannot be used to sign. Please double check the guide on how to export a correct p12. If you are certain that your p12 is correct, please let me know the name of each item inside it.
@meelasjb commented on GitHub (Oct 4, 2022):
Hi I followed these instructions to generate the P 12 file
macOS
Install Xcode and open the
Account Preferences(A). Sign into your account using the plus button. Select your account and click onManage Certificates.... In the new window (B), click the plus button and thenApple Development. ClickDone. Now open theKeychainapp (C). There you will find your certificate and private key. Select them by holdingCommand, then right-click and selectExport 2 items.... This will export you the.p12file you need.macOS
Install Xcode and open the Account Preferences (A). Sign into your account using the plus button. Select your account and click on Manage Certificates.... In the new window (B), click the plus button and then Apple Development. Click Done. Now open the Keychain app (C). There you will find your certificate and private key. Select them by holding Command, then right-click and select Export 2 items.... This will export you the .p12 file you need.
if I need to do anything else, please give me the link to the guide
@ViRb3 commented on GitHub (Oct 4, 2022):
Can you please let me know the name of each item inside your p12?
@meelasjb commented on GitHub (Oct 4, 2022):
When I expand the certificate in the keychain it has Apple distribution and my name
@ViRb3 commented on GitHub (Oct 4, 2022):
Right. In this case, you will need both the development and distribution account in your p12. Re-read the guide: https://github.com/SignTools/SignTools/blob/master/INSTALL-SIMPLE.md#3-signing-profile
@abdullah5490 commented on GitHub (Oct 4, 2022):
in your guide, it is mention "export 2 items", and the cert file already contain 2 item, one is dev cert and second private key (with my name). I'm following the guide correctly whatever is written in it, it has no detailed info so no chance of missing something.
I also tried using unofficial method but it doesn't work because altserver freezes after replacing DLL.
Now, if official method is not working for me, can you please be kind enough to post some more details so that I can understand what i'm doing wrong?
additionally, please wait for issue resolution before closing this issue which you have done unfairly. I'm still looking for your help everywhere in this regards. @ViRb3
@ViRb3 commented on GitHub (Oct 4, 2022):
From the official guide:
If you want to use distribution certificate, you need to also include your development certificate and its key in your p12. This makes 4 items in your p12. I will update the docs to make it clearer.