Solved

import / export cacerts from Windows to Linux

Posted on 2004-10-05
7
1,930 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
Comment Utility
Have you got a higher SDK in Windows than Linux?
0
 
LVL 3

Author Comment

by:granbajo
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 3

Author Comment

by:granbajo
Comment Utility

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
Comment Utility
>>
, 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
Comment Utility
Apologies CEHJ... I should have split the points!!!
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
You can always reopen the question ;-)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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

14 Experts available now in Live!

Get 1:1 Help Now