I need to sign java jar files. I was sent a cert. Unfortunatly it is not as simple as I thought.
I created a new keystore with this cert.
keytool -import -alias aliasName -file javaSigningCert -keypass keypassword -storepass storepassword -trustcacerts -keystore my.keystore
Using the new keystore file, my.keystore, to sign a jar file.
jarsigner -keystore my.keystore -keypass keypassword -storepass storepassword test.jar aliasName
I am getting the following message,
jarsigner: Certificate chain not found for: aliasName. aliasName must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
What am I doing wrong? I believe I am missing the certs from the original key pair?
Thanks ahead of time,