Question

I am using Oracle App Bundler to sign my Java application for OSX. I use this following commands to sign my application:

codesign -f -s "MyName" dist/MyCool.app
codesign -vv dist/MyCool.app

"MyName" is a self-signed certificate common name that I created with Key Chain Access. It went well, although OSX gives warning that it come from untrusted developer. Now that I have create a Mac Developer certificate from our Apple Developer subscription, how do I use it? I have already imported the downloaded mac_development.cer into Key Chain Access, but using its common name, codesign still complain no identity found.

How do I properly import it into my development environment?

Was it helpful?

Solution

The codesign command should be:

codesign -s "Developer ID Application: Certificate Common Name" dist/MyCool.app

You also need to add the intermediate certificates from Apple (in case you haven't added those to your keychain).

  • Developer ID Certification Authority
  • Apple Worldwide Developer Relations Certification Authority (WWDR)

    1. http://www.apple.com/certificateauthority/
    2. Download the Intermediate Certificates listed.
    3. Add them to your keychain

Also, take a look at the Apple Developer Codesigning Workflow Guide

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top