aurel
aurel

Reputation: 171

certificate in jks keystore to be imported in java home

I have to develop a web app that makes calls to web services. I use Jdeveloper for this. I have just a PFX file that I have imported in windows so I can view the WDSL of web service from a browser (Chrome in my case). I get the jks keystore from PFX version using this keytool -importkeystore -srckeystore original.pfx -srcstoretype pkcs12 -destkeystore generated.jks -deststoretype JKS .

Now I have to import this certificate some where in java_home (using keytool or maybe something else) to be used by jdeveloper wizards that access web services to authenticate to web services.

Many thanks, Aurel

Upvotes: 1

Views: 995

Answers (2)

aurel
aurel

Reputation: 171

I used keystore explorer to trasform the PFX type of keystore to JKS .

Then I used this store as truststore for the client ws that is connecting to a self signed server Thanks, Aurel

Upvotes: 0

always_a_rookie
always_a_rookie

Reputation: 4840

Java comes with a default TrustStore which can be found here %JAVA_HOME%/jre/lib/security/cacerts. It is of type JKS and the password to it changeit. If you add the certificate to this file, it is trusted by Java. So be cautious in what Certificates you are trusting.

Upvotes: 1

Related Questions