Solved

jarsigner Certificate chain not found error

Posted on 2006-06-28
5
11,650 Views
Last Modified: 2012-05-05
Hi,

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?

Thanks.

0
Comment
Question by:znotte
  • 2
5 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 17000879
0
 

Author Comment

by:znotte
ID: 17001233
It seems that I need to use my private key, located in my keystore, if I wanna use the public certificate on other machines.

But imagine that I have hundreds of private keys in my keystore, and I just wanna use one of them. How do I extract a private key from my keystore and tranfer it to a new one?
0
 
LVL 35

Accepted Solution

by:
girionis earned 250 total points
ID: 17007707
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 123
maven module vs maven project 3 69
swing controls 2 21
What is the use of Forwarding Class in java 1 34
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question