question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find valid code signing certificate despite valid identities being printed in console during build

See original GitHub issue
  • Version: 19.54.0
  • Electron Builder: 2.19.1
  • Target: mac, windows, linux (–mwl)

I run the command build --em.main=build/electron.js -mwl --x64 e -p always and it goes through the proper steps and then it says “skipped macOS application code signing reason=cannot find valid “Developer ID Application” identity or custom non-Apple code signing certificate, see https://electron.build/code-signing allIdentities=” and prints:

1) 2B12438F977D8D2F0E1CEDEBC76A7422FD04587E "3rd Party Mac Developer Application: Foo.io Inc (EHV7XZLAHA)"
 2) FAC6726A0A4AFC4C06D46A46834279BB3EB25844 "3rd Party Mac Developer Installer: Foo.io Inc (EHV7XZLAHA)"
           2 identities found

Valid identities only
1) 2B12438F977D8D2F0E1CEDEBC76A7422FD04587E "3rd Party Mac Developer Application: Foo.io Inc (EHV7XZLAHA)"
2) FAC6726A0A4AFC4C06D46A46834279BB3EB25844 "3rd Party Mac Developer Installer: Foo.io Inc (EHV7XZLAHA)"

I’m at a loss… Cannot figure out how to sign my application with electron-builder.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

28reactions
tjdcscommented, Feb 7, 2018

The “3rd Party Mac Developer Application” =/= “Developer ID Application”

I just found out that you should be able to generate one of the correct type of profiles from XCode but you need to be the team agent in your Apple Developer program (if you are enterprise)

Try XCode > Preferences > Accounts > … > Manage Certificates > + > Developer ID Application

3reactions
stukennedycommented, Nov 23, 2020

I had the same issue, turns out that Mac updates have installed XCode 11 and the signing script is now looking for different certificates.

You need to log in here and download certificates for: Apple Development Apple Distribution https://developer.apple.com/account/resources/certificates/list

The old Developer ID XXX ones don’t seem to work anymore.

After installing the above certs … running security find-identity -vp codesigning shows the certs are found

Read more comments on GitHub >

github_iconTop Results From Across the Web

0 valid identities found when secu… | Apple Developer Forums
Valid identities only. 0 valid identities found. But when I codesign using Developer ID Application, it works. And Xcode build app using iPhone...
Read more >
Unable to list my Developer ID Application identity
The certificate is in the keychain, certainly, but it won't show up as a "valid identity" unless you also have the key.
Read more >
Valid root CA certificates are untrusted - Windows Server
This article provides a workaround for an issue where valid root CA certificates that are distributed by using GPO appear as untrusted.
Read more >
Sign your app - Android Developers
The self-signed certificate used to sign your app for debugging has an expiration date of 30 years from its creation date. When the...
Read more >
Xcode encountered an error - Seba Online
My Xcode Interface Is Different Missing panels or views Nov 09, ... There you can see which of your "Signing Identities" (Certificates) are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found