I'm trying to sign my Java application in OSX using codesign
. I've paid my $100 ransom to Apple and obtained my code signing certificate. I then used codesign
like this to force it to sign my app previously created using the osxappbundle
Maven plugin:
codesign -f -s "Peter Brewer" FHAES.app
This seems to have done the job as when I try to verify the signature by doing:
codesign --display --verbose=4 FHAES.app
...I get the following response:
Executable=/Applications/FHAES.app/Contents/MacOS/JavaApplicationStub
Identifier=FHAES
Format=bundle with Mach-O universal (i386 x86_64)
CodeDirectory v=20100 size=174 flags=0x0(none) hashes=3+3 location=embedded
Hash type=sha1 size=20
CDHash=de2cd9909fcc4bfab1f690c518a6c6c3b3097372
Signature size=4311
Authority=Mac Developer: Peter Brewer (N35745G8TD)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Jan 10, 2014, 4:46:57 PM
Info.plist entries=10
Sealed Resources version=2 rules=12 files=2
Internal requirements count=1 size=164
Unless I misunderstand, this seems to indicate it has been signed successfully with a certificate authorized by Apple. However when I then try to launch the application I get the usual "can't be opened because it is from an unidentified developer" error.
Can anyone tell me what I'm doing wrong?
On a related note if anyone could please implement codesign
in Linux I'd be eternally grateful. I despise Apple for breaking my one click cross-platform build system even more than I do for blackmailing me in to paying for their certificate!