How to Sign a .jar file with my Apple Developer ID

1.1k views Asked by At

I have a java executable jar file that I need to be signed with my Apple Developer ID. I don’t intend to distribute it through the app store. I will be distributing the app directly to customers through my website. I’m not intending to bypass Gatekeeper. Signing the app with my developer ID is what will satisfy Gatekeeper when customers install the app and thus avoid a security prompt that I am an "Unidentified Developer".

Any help would be greatly appreciated

2

There are 2 answers

0
paulsm4 On

From apple.stackexchange.com:

Signed binary being warned as signed by unknown developer on OSx

It appears the security settings of the computer in System Preferences → Security & Privacy are set to Allow apps downloaded from: App Store as shown in the error message.

Regardless of how your application is signed, if it's not distributed through the App Store, Gatekeeper will show that message. To allow all other signed apps, the setting needs to be changed to App Store and identified developers

See also:

How to sign Java applet with Apple Developer ID

Oh, there is no way to do it =( Java applets cannot participate in the Developer ID program. The Apple's answer is here https://stackoverflow.com/a/12210534/1068878.

1
Dark Knight On

Use appbundler tools from oracle sdk (if you are using JDK version 8 or+, else download it manually). I could do similar stuff by following steps mentioned here.