Monday, 27 March 2017

Decrypt Password of Weblogic Domain Components


Password information’s are stored in the data file named SerializedSystemIni.dat, which is located at [DOMAIN_HOME]/security directory. This file cannot be opened in normal text mode. Encrypted passwords are used in various files like config.xml, boot.properties etc.
Using this method one can recover password for
  1. weblogic Admin Console
  2. KeyStore password
  3. Data source Password
Process
 
1. Go to the [DOMAIN_HOME]/security
2. Create a file named Decrypt.py
 
 
3. Copy the below lines to the file and save it
 
 
 
from weblogic.security.internal import *
from weblogic.security.internal.encryption import *
 
 #This will prompt you to make sure you have SerializedSystemIni.dat file under
#current directory from where you are running command
raw_input("Please make sure you have SerializedSystemIni.dat inside the current directory, if yes press ENTER to continue.")
 
 # Encryption service
encryptionService = SerializedSystemIni.getEncryptionService(".")
clearOrEncryptService = ClearOrEncryptedService(encryptionService)
 
 # Take encrypt password from user
pwd = raw_input("Please enter encrypted password (Eg. {3DES}Bxt5E3...): ")
 
 # Delete unnecessary escape characters
preppwd = pwd.replace("\\", "")
 
 # Decrypt password
                print "Your password is: " + clearOrEncryptService.decrypt(preppwd)
 
 
4. Go to [DOMAIN_HOME]/bin
5. Run  . ./setDomainEnv.sh
 
 
6. Go to the [DOMAIN_HOME]/security and run the below command
 
Java weblogic.WLST Decrypt.py
 
 
 
Note: Only the password from that domain can be retrieved. Password from other domain cannot be retrieved.
 
 
 
 
 
 

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

Followers

OIM API for adding process task and retry failed task

 In this blog you can find how to add new process task and retry any failed/rejected tasks using API. Adding new process task: /************...