I'm trying to sign a jar file with a code signing certificate issued by globalsign.
I'm completely new to this but after some googling and a lot of trial and error, I executed the following steps.
I've imported the certificate in my keystore using:
keytool -importcert -alias signalias -file OS200912023195.cer
When I try to sign my jar file using:
jarsigner applet.jar signalias
I get the following error:
jarsigner: Certificate chain not found for: signalias. signalias must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
Did I forget something or lies the problem with the certificate?