Link to home
Start Free TrialLog in
Avatar of cibv0ql
cibv0qlFlag for Belgium

asked on

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?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Try using the following - it automates the task

http://technojeeves.com/joomla/index.php/free/46-java-cert
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cibv0ql

ASKER

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.
>>
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
> 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
Avatar of cibv0ql

ASKER

It would be nice if a command example was present in the answer. Other then that, I now know the answer to my question.