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.

Correct way to Code Signing on macOS

See original GitHub issue
  • Version: 10.8.1
  • Target: macOS
  • I have followed the process of exporting certificates as described here and exported the Certificates.p12 to /Users/akash/cert/Certificates.p12
  • Added following env from terminal -
CSC_LINK=Users/akash/cert/Certificates.p12
CSC_KEY_PASSWORD=mypassword
CSC_IDENTITY_AUTO_DISCOVERY=false

Running npm run dist still gives -

⚠️  Mac Developer is used to sign app — it is only for development and testing, not for
 production
Signing app (identity: Mac Developer: Akash Nimare (YG56YK5RU4))

Building macOS zip
Building DMG 

@develar could you please tell me what I’m doing wrong? Btw I have a Apple Developer account and got this certificate form there only.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

17reactions
bobtherobotcommented, May 2, 2018

For the next guy suffering from confusion… You need to make a “Developer ID Application” cert from mac developer site:

  1. Select Type - “What type of certificate do you need?” (•) Production > Developer ID

  2. Select Type - “Select the certificates you want to generate.” (•) Developer ID Application

  3. (and 4 and 5) Request, Generate, Download

    • Read and follow the instructions to generate CSR and upload etc…
  4. After downloading the result, drag and drop it onto your KeyChain application’s icon to install the cert manually. NOTE: The resulting default filename is probably identical to another cert you have… so make sure to modify the filename so you can differentiate between your different certs.

1reaction
damianobarbaticommented, Jun 12, 2018

@bobtherobot the problem is I was “team admin” but just “team agent” is the all-mighty character who can create the Developer ID. Everything is ok now but better alerts (explaining why the used apple certificate is not valid) would be advisable 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Signing - Support - Apple Developer
Code signing your app assures users that it's from a known source and hasn't been modified since it was last signed. Before your...
Read more >
Mac Codesign Utility Signing Code in Mac OS - DigiCert.com
Apple code signing is done from the command line using their (aptly named) codesign tool and should be very straightforward. Note: You can...
Read more >
How to Create a Code Signing Certificate in MacOS - YouTube
Host: Haroon ZuberiIn this video, we have explained that how to create a code signing certificate in macOS.If you want to know that...
Read more >
How Do I Sign a File with a Code Signing Certificate in MacOS?
First, save the P12 or PFX file on your Mac's hard disk. · Now navigate to Applications/Utilities and start Keychain Access. · Choose...
Read more >
How to create code signing certificate in macOS
A Code Signing certificate in macOS allows you to sign modules or programs using codesign tool. Code signing is a security measure used...
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