When implementing SSL with Oracle technologies such as OHS an Oracle Wallet is required. The Oracle Wallet is Oracle's proprietary keystore for holding identity and trust SSL keys. Often though, a company will provide the Java Keystore (jks) format. Here is a trick to convert the JKS into an Oracle Wallet via the command line using the orapki command from an Oracle Client installation.
# create a new wallet. If C:\wallet_temp already exists, remove it first.
orapki wallet create -wallet c:\wallet_temp -auto_login_local
orapki wallet create -wallet c:\wallet_temp\ewallet.p12 -auto_login
# Remove all the default trusts from new wallet for a truly empty wallet
orapki wallet remove -wallet c:\wallet_temp\ewallet.p12 -trusted_cert_all
# using an existing jks file, import all contents into the new wallet
orapki wallet jks_to_pkcs12 -wallet c:\wallet_temp\ewallet.p12 -keystore c:\wallet_temp\my_java_keystore.jks -jkspwd "my_java_keystore_password"
I am getting following exception while exporting .jsk keystore to oracle wallet. Please help. Thanks
ReplyDeleteException : java.io.IOException: No self-signed cert in chain
The conversion only works if the jks has a private key and all trusted certificates in it. It won't work if you are just trying to create a wallet trust store.
DeleteThanks , it helped a lot
ReplyDeleteAfter applied SSL for servers in foundation and FDMEE, foundation is working but coming to FDMEE ODI connection is getting failed. We are using 11.1.2.4 version and 12 c database.
ReplyDeleteOracle PKI Tool : Version 12.2.1.0.0
ReplyDeleteCopyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
Exception : java.io.IOException: Invalid keystore format
I got above error when i tried to convert JKS to a wallet using orapki utility