This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Security and the fly likes Certificate not accepted in JRE 1.4.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Certificate not accepted in JRE 1.4.2" Watch "Certificate not accepted in JRE 1.4.2" New topic
Author

Certificate not accepted in JRE 1.4.2

vignesh bala
Greenhorn

Joined: Aug 19, 2006
Posts: 28

I have to use a certificate which uses the sha1DSA signing algorithm to contact a web service(I am coding a client). I was using J2SDK_1.4.1_02 before. I added the certificate to keystore and it was working fine. But if I upgraded my JRE to 1.4.2_13 the same code doesn't work,. I got the following exception:


But, I found that this JRE is accepting only certificate with sha1RSA signature algorithm. Please help me if anybody knows why this occurs or is this an issue which is to be addressed in server side.
George Stoianov
Ranch Hand

Joined: Jan 15, 2006
Posts: 94
Don't you have to re-import the certificate after the upgrade? Is it using the same keystore?
vignesh bala
Greenhorn

Joined: Aug 19, 2006
Posts: 28

Hi,
yes I have re imported the certificate to the new keystore. Sorry I missed to indicate that in above post. I issue is still occuring. so please help if you have any idea
vignesh bala
Greenhorn

Joined: Aug 19, 2006
Posts: 28

Hi,
The issue is solved now. A bit silly though. I installed the certificate from the SSL web site itself(by putting the URL in browser). I got a certificate in a different format from what I am provided. I put this cert in addition to what I already have and the issue was solved. I think they missed to give this cert before. It has nothing to do with the JRE version.Thanks for your suggessions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Certificate not accepted in JRE 1.4.2