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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top