Monday, June 4, 2012

Weblogic 10.3.5: WLST Scripts to Configure Credential Store Framework (CSF) For Access Level/Message Level security



Weblogic 10.3.5: WLST Scripts to Configure Credential Store Framework (CSF) For Access Level/Message Level security.

Follow these steps to configure the credential store to access the Oracle WSM keystore using WLST commands



  • Go to the Oracle Common home directory for your installation, for example /home/Oracle/Middleware/oracle_common.

  • Start WLST using the WLST.sh/cmd command located in the oracle_common/common/bin directory. For example:
  • /home/Oracle/Middleware/oracle_common/common/bin/wlst.sh (UNIX)
  • C:\Oracle\Middleware\oracle_common\common\bin\wlst.cmd (Windows)
                 When executed, these commands start WLST in offline mode. To use the credential store WLST  
                 commands, you must use WLST in online mode.

    • Start Oracle WebLogic Server. 

    • Connect to the running WebLogic Server instance using the connect() command. For example, the following command connects WLST to the Administration Server at the URLmyAdminServer.oracle.com:7001 using the username/password credentials weblogic/welcome1:

      
      
      connect("weblogic","welcome1","t3://myAdminServer.oracle.com:7001")
      
      
      Enter the createCred command to create an entry in the credential store for the keystore name and password as follows:
      createCred(map="oracle.wsm.security", key="keystore-csf-key", user="owsm", password="welcome1", desc="Keystore key")
      
      
      
      
      Enter the createCred command to create an entry in the credential store for the keystore name and password as follows:
      
      
      createCred(map="oracle.wsm.security", key="keystore-csf-key", user="owsm", password="welcome1", desc="Keystore key")
      
      
      Enter the createCred command to create an entry in the credential store for the signature key alias and password as follows:
      createCred(map="oracle.wsm.security", key="sign-csf-key", user="orakey", password="welcome1", desc="Signing key")
      Enter the createCred command to create an entry in the credential store for the encryption key alias and password as follows:
      createCred(map="oracle.wsm.security", key="enc-csf-key", user="orakey", password="welcome1", desc="Encryption key")

    OCI Knowledge Series: OCI Infrastructure components

      Oracle Cloud Infrastructure (OCI) provides a comprehensive set of infrastructure services that enable you to build and run a wide range of...