keytool error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic
This error occurs when there are may key tools available in the system .. we the environment variable is set in the system to use the particular keytool then this error will not occur. normally in fusion applications we can set the environmental variables by using adsetenv.sh which is located in the $APPL_TOP/lcm/ad/bin ..Step1
[root@fah ~]# keytool -list -v -keystore default-keystore.jks -storepass <password>
keytool error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic
Step2
[root@fah ~]# locate keytool
/u01/oracle/fa/products/dbclient/jdk/bin/keytool
/u01/oracle/fa/products/dbclient/jdk/jre/bin/keytool
/u01/oracle/fa/products/fusionapps/bi/jdk/bin/keytool
/u01/oracle/fa/products/fusionapps/bi/jdk/jre/bin/keytool
/u01/oracle/fa/products/fusionapps/bi/jdk_bak_0/bin/keytool
/u01/oracle/fa/products/fusionapps/bi/jdk_bak_0/jre/bin/keytool
/u01/oracle/fa/products/fusionapps/jdk6/bin/keytool
/u01/oracle/fa/products/fusionapps/jdk6/jre/bin/keytool
/u01/oracle/fa/products/fusionapps/wlserver_10.3/server/native/linux/i686/wlkeytool
/u01/oracle/fa/products/fusionapps/wlserver_10.3/server/native/linux/x86_64/wlkeytool
/u01/oracle/fa/products/webgate/access/_jvmWebGate/bin/keytool
/u01/oracle/fa/products/webgate/access/_jvmWebGate/man/ja/man1/keytool.1
/u01/oracle/fa/products/webgate/access/_jvmWebGate/man/ja_JP.eucJP/man1/keytool.1
/u01/oracle/fa/products/webgate/access/_jvmWebGate/man/man1/keytool.1
/u01/oracle/fa/products/webtier_mwhome/oracle_common/jdk/bin/keytool
/u01/oracle/fa/products/webtier_mwhome/oracle_common/jdk/jre/bin/keytool
/u01/oracle/fa/products/webtier_mwhome/webtier/jdk/bin/keytool
/u01/oracle/fa/products/webtier_mwhome/webtier/jdk/jre/bin/keytool
/u01/oracle/fa/products/webtier_mwhome/webtier/jdk.orig/bin/keytool
/u01/oracle/fa/products/webtier_mwhome/webtier/jdk.orig/jre/bin/keyto
Once you set the fusion applications environmental variables it will display the keytool under the fusionapps/jdk or you need to give the absolute path for the keytool and then process with the parameters
After the sourcing the env file APPSENV.ora the path to the key tool will be set
[oracle@fahtestdb ~]$ which keytool
/u01/oracle/fa/products/fusionapps/jdk6/bin/keytool
Or
[oracle@fah ]# /u01/oracle/fa/products/dbclient/jdk/bin/keytool -list -v -keystore default-keystore.jks -storepass <passoord>
Keystore type: jks
Keystore provider: SUN
Your keystore contains 2 entries
orakey, Mar 5, 2012, keyEntry,
Certificate fingerprint (MD5):
webcenter_spaces_ws, Mar 5, 2012, trustedCertEntry,
Certificate fingerprint (MD5):
No comments:
Post a Comment