jarsigner Certificate chain not found error
Posted on 2006-06-28
Is there a way to use my allready generated certificate in a diferent machine, without getting: jarsigner Certificate chain not found error?
Here is the scenario:
I´ve created a digital certificate on my machine (windows 2000), using keytool -genkey, like this:
keytool -genkey -keyalg rsa -alias mycert
Then, with the mycert.csr file, I´ve created the mycert.cer file with my test CA.
Next, I´ve imported the .cer certificate using keytool -import:
keytool -import -keystore .keytore -alias mycert -file studio.cer
And finally signed my jar file:
jarsigner -storepass 123456 -signedjar asso-ja sso.jar mycert
Signing my jar file this way, worked pretty well. But only on one machine.
The problem goes here:
If i try to sign my jar on a DIFERENTmachine, using these steps:
1 - keytool -import -keystore .keytore -alias mycert -file studio.cer
2 - jarsigner -storepass 123456 -signedjar asso-ja sso.jar mycert
I get this error:
jarsigner: Certificate chain not found for: mycert. mycert must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
Is there a way to use my allready generated certificate in a diferent machine?
The fact that my private key were generated on one machine, hinders it use on others?