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:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the next guy suffering from confusion… You need to make a “Developer ID Application” cert from mac developer site:
Select Type - “What type of certificate do you need?” (•) Production > Developer ID
Select Type - “Select the certificates you want to generate.” (•) Developer ID Application
(and 4 and 5) Request, Generate, Download
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.
@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 😃