Search Results

Tuesday, November 29, 2016

Import certificates using keytool


One of the import step to call an https webservice using java is to import the SSL certificates before initiating a call.

This example shows the certificates imports on a default weblogic certificates path. However this could be different on your weblogic server, so make sure the path is checked before installing the certificates.

cd /u01/app/oracle/products/jdk1.8.0_66/bin

./keytool -import -keystore /u01/app/oracle/products/fmw1213/wlserver/server/lib/DemoTrust.jks -alias salesforcecom_test -storepass DemoTrustKeyStorePassPhrase -file ~/SalesforceCert.cer

keytool -list -keystore /u01/app/oracle/products/fmw1213/wlserver/server/lib/DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -alias salesforcecom_test