Import certificate into jre keystore on OS X 10.6

I have a web application that uses soap over https to obtain some data on another server.
To be more precise, my web application uses a Identikey 3.1  server to obtain user credentials over HTTPS using a soap call. For this to work a certificate needs to be available for the JVM running my web-application.

I know how to import certificates on the windows platform, but is there a best practice for jvm ' s on OS X, or is the unix way the correct way to do this?
Some hints I found on google point to the os x keychain, but this seems a little odd, or not?
cibv0qlAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
> I know how to import certificates on the windows platform but is there a best practice for jvm ' s on OS X, or is the unix way the correct way to do this?

same way as on unix, theres no difference
0
 
CEHJCommented:
Try using the following - it automates the task

http://technojeeves.com/joomla/index.php/free/46-java-cert
0
 
cibv0qlAuthor Commented:
So you could import a certificate into the keystore using the linux version of keytool:

Example: keytool -import -v -keystore <keystore file> -file mycerts.pem

Some info on google pointed to using the keychain to achieve this and that confused me.

I haven' t tried the solution by CEHJ yet, I made a habit of not running homebrew scripts/programs for these kinds of actions without checking them out first.
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
CEHJCommented:
>>
I haven' t tried the solution by CEHJ yet, I made a habit of not running homebrew scripts/programs for these kinds of actions without checking them out first.
>>

It's not 'homebrew' :-) - it was written by someone at Sun to simplify what you're trying to do
0
 
objectsCommented:
> So you could import a certificate into the keystore using the linux version of keytool:

yes (but you'd use the mac version that comes with the jdk)

> I haven' t tried the solution by CEHJ yet

don't bother, its not applicable to what you are doing
0
 
cibv0qlAuthor Commented:
It would be nice if a command example was present in the answer. Other then that, I now know the answer to my question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.