convert Auto-Login (cwallet.sso) Wallet into a PKCS12 compliant Wallet

一步不行吗 ? 


1. If $JAVA_HOME is not set:

a)For FMW 11g components associated with a WebLogic Domain or a FMW 12c Collocated OHS install run:

$MIDDLEWARE_HOME/user_projects/domains//bin/setDomainEnv.sh

  
b) For FMW 11g Standalone Webtier with no Weblogic domain, or a FMW 12c Standalone Domain run:
  

export JAVA_HOME=$MIDDLEWARE_HOME/jdk/bin

  

2. Convert the Wallet you want to export to a Java Keystore:

$MIDDLEWARE_HOME/oracle_common/bin/orapki wallet pkcs12_to_jks -wallet /cwallet.sso -jksKeyStoreLoc /ewallet.jks -jksKeyStorepwd

For example:

MW_HOME/oracle_common/bin/orapki wallet pkcs12_to_jks -wallet INSTANCE_HOME/config/OHS/ohs1/keystores/default/cwallet.sso -jksKeyStoreLoc INSTANCE_HOME/config/OHS/ohs1/keystores/default/ewallet.jks -jksKeyStorepwd password

3. Create a Password Protected Wallet (e.g ewallet.p12) in a new location:

$MIDDLEWARE_HOME/oracle_common/bin/orapki wallet create -wallet -auto_login

For example:

MW_HOME/oracle_common/bin/orapki wallet create -wallet INSTANCE_HOME/config/OHS/ohs1/keystores/default/newwallet -auto_login

Please enter a password for this Wallet: password
Please confirm the password: password

4. Convert the Keystore created in Step 2. to the wallet created in Step 3:

$MIDDLEWARE_HOME/oracle_common/bin/orapki wallet jks_to_pkcs12 -wallet -pwd -keystore /ewallet.jks -jkspwd

For example:

MW_HOME/oracle_common/bin/orapki wallet jks_to_pkcs12 -wallet INSTANCE_HOME/config/OHS/ohs1/keystores/default/newwallet -pwd password -keystore MW_HOME/oracle/common/bin/ewallet.jks -jkspwd password

5. At this point you now have converted your original Auto-Login (cwallet.sso) Wallet into a PKCS12 compliant Wallet (ewallet.p12 ) which can be used in any 3rd party PKCS12 aware application.

你可能感兴趣的:(oracle)