Monday, June 12, 2017

Example using orapki

Here is a quick example demonstrating how to list the contents of the default Oracle Wallet in Oracle WebTier 12c using orapki.

Keep in mind the following:
  • The default wallet is auto-login enabled, so it is not necessary to use the -pwd option to include the password.
  • orapki requires Java, so make sure to set your Java environment appropriately.
  • In some products, the default password for the default wallet is "welcome".

-----

oracle@soahost1:/u01> export MW_HOME=/u01/app/oracle/products/fmw1221

oracle@soahost1:/u01> export JAVA_HOME=/u01/jdk1.8.0_102

oracle@soahost1:/u01> export PATH=$JAVA_HOME/bin:$PATH

oracle@soahost1:/u01> $MW_HOME/oracle_common/bin/orapki wallet display -wallet $MW_HOME/user_projects/domains/ohs_domain/config/fmwconfig/components/OHS/instances/ohs1/keystores/default -complete

Oracle PKI Tool : Version 12.2.1.1.0
Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.

Found Auto Login Only (ALO) wallet.
Option -pwd is not recognized and ignored.
Requested Certificates:
User Certificates:
Subject:        CN=localhost,OU=FOR TESTING ONLY,O=FOR TESTING ONLY
Issuer:         CN=localhost,OU=FOR TESTING ONLY,O=FOR TESTING ONLY
Serial Number:  00
Key Length      1024
MD5 digest:     80:81:B2:49:CC:1E:1A:3C:6B:C6:23:C5:DF:BF:C3:32
SHA digest:     80:3E:47:A3:6D:8C:78:D0:00:99:48:FA:C9:1D:E2:2F:F8:FE:B0:D1

Trusted Certificates:
Subject:        CN=localhost,OU=FOR TESTING ONLY,O=FOR TESTING ONLY
Issuer:         CN=localhost,OU=FOR TESTING ONLY,O=FOR TESTING ONLY
Serial Number:  00
Key Length      1024
MD5 digest:     80:81:B2:49:CC:1E:1A:3C:6B:C6:23:C5:DF:BF:C3:32
SHA digest:     80:3E:47:A3:6D:8C:78:D0:00:99:48:FA:C9:1D:E2:2F:F8:FE:B0:D1


References





No comments: