Solved

import / export cacerts from Windows to Linux

Posted on 2004-10-05
7
1,943 Views
Last Modified: 2008-01-16
This is driving me crazy, hopefully someone can help

I need to move an application tha uses cacerts from Windows to Linux, so I thought that a simple export / import of the required certs would do the trick.  No such luck.

Here is what I have so far.

On my Windows machine I can list the required certificate on the cacerts file as follows:

keytool -list -keystore cacerts

I can export the particular one I need with

keytool -export -file some.cer -alias some -keystore cacerts

I can view the newly created cert  on my file some.cer with:

keytool -printcer -file some.cer

Now, when I go to import it onto a new cacerts file on Linux (that has some other keys)

keytool -import -file some.cer -alias some.cer -keystore cacerts

I get the following error message

keytool error: java.security.NoSuchAlgorithmException: MD5WITHRSA Signature not available

Any ideas?

Copying the cacerts file over the old one in Linux doesn't seem to work.

0
Comment
Question by:granbajo
  • 3
  • 3
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12230561
Have you got a higher SDK in Windows than Linux?
0
 
LVL 3

Author Comment

by:granbajo
ID: 12230807
Actually at this stage I am even using the same keytool on Windows as a test!
0
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
ID: 12232396
looks like that algorithm is not available to your linux runtime.

> Actually at this stage I am even using the same keytool on Windows as a test!

are you saying you get the same error on windows?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Author Comment

by:granbajo
ID: 12236773

I sorted the problem...  I was using the wrong version of the jre, I was exporting on Windows using jre 1.3.0, and trying to import it back there as a test, and it looks like objects is right, there was no algorithm there.  When I used the version 1.4 on my Windows machine, and subsequently in Linux it worked.

I am giving the points to objects... I should have tried harder!!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12241248
>>
, I was exporting on Windows using jre 1.3.0, and trying to import it back there as a test, and it looks like objects is right, there was no algorithm there.  When I used the version 1.4 on my Windows machine, and subsequently in Linux it wored
>>

and what did i say in my comment? Saying the 'algorithm is not there' is merely repeating the error message. I explained the possible reason
0
 
LVL 3

Author Comment

by:granbajo
ID: 12248823
Apologies CEHJ... I should have split the points!!!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12250798
You can always reopen the question ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I do a Massively massive community reviewing-and-grading site? 7 69
Java passing arguments (type error) 2 47
Java Loop 6 48
varialbe initialization 11 30
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now