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
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.