How to Connect to WLST?
Run ./wlst.sh command under $ORACLE_HOME/common/bin/wlst.shIt will be in offline mode. So,
connect()
Enter username and password along with your admin host and port.
Once its online, Run the below command.
How to Create CFS Key?
createCred(map="mapName", key="keyName", user="userName", password="passW", [desc="description"])Sample: createCred(map="oracle.wsm.security", key="Test-key", user="username", password="pwd123", desc="Test WLST")
As you can see the command has created the Key Successfully. To verify, you can login to EM Console and validate the same.
http://adminhost:port/em/
Expand Weblogic domain -> Right Click on SOA Server ->Security->Credentials
Other Operations you can perform on CFS key's are,
- listCred - returns the list of attribute values of a credential in the domain credential store with given map name and key name
- updateCred - modifies the type, user name, and password of a credential in the domain credential store with given map name and key name.
- deleteCred - removes a credential with given map name and key name from the domain credential store
Good post, just what I was looking for :)
ReplyDelete