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
- weblogic Admin Console
- KeyStore password
- 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.