How to Import Certificate in OIM KeyStore
Commands to import certificate into OIM keystore are as below.
If you have custom keystore, you can import certificate in custom keystore or if you do not have custom keystore, you can import in DemoTrust.jks keystore.
1.Import Certificate-
keytool -import -keystore /opt/oracle/apps/jdk/jre/lib/security/cacerts -file /home/oracleapp/cert/wdsandbox.cer -storepass changeit -alias wdsandbox
keytool -import -keystore /opt/oracle/apps/OIM_Middleware/wlserver/server/lib/oimtruststore.jks -file /home/oracleapp/cert/wdsandbox.cer -alias wdsandbox -storepass 0imtrustst0repassw0rd
keytool -import -keystore /opt/oracle/apps/OIM_Middleware/wlserver/server/lib/oimkeystore.jks -file /home/oracleapp/cert/wdsandbox.cer -alias wdsandbox -storepass 0imkeyst0repassw0rd
keytool -import -keystore /opt/oracle/apps/OIM_Middleware/wlserver/server/lib/DemoTrust.jks -file /home/oracleapp/cert/wdsandbox.cer -storepass DemoTrustKeyStorePassPhrase -alias wdsandbox
2.View Existing Certificate-
To list/view certificate imported in particular keystore,commands are below
keytool -list -keystore "/home/oracleapp/cert/oimtruststore.jks"
keytool -list -keystore "/opt/oracle/apps/jdk/jre/lib/security/cacerts" -storepass changeit
keytool -list -keystore "/home/oracleapp/cert/oimkeystore.jks"
keytool -list -keystore "/opt/oracle/apps/OIM_Middleware/wlserver/server/lib/DemoTrust.jks"
keytool -list -keystore "/opt/oracle/apps/OIM_Middleware/wlserver/server/lib/oimkeystore.jks" -storepass 0imkeyst0repassw0rd
3.Delete Existing Certificate-
To delete the certificate from keystore, commands are below.
keytool -delete -alias wdsandbox -keystore /opt/oracle/apps/jdk/jre/lib/security/cacerts
keytool -delete -alias wdsandbox -keystore /home/oracleapp/cert/oimtruststore.jks
keytool -delete -alias wdsandbox -keystore /home/oracleapp/cert/oimkeystore.jks
keytool -delete -alias wdsandbox -keystore /opt/oracle/apps/OIM_Middleware/wlserver/server/lib/DemoTrust.jks
Thanks and Regards,
Team Identity Tiffin
Comments
Post a Comment