How to decrypt weblogic password

Once one of the primary DBAs went out for a vacation and the EBS 12.2 application that he used to manage had to be shut down for rebooting the underlying server. But we had no weblogic password to gracefully stop the application.

If you face similar situation, you can follow below steps to decrypt the weblogic password.

1) Take the adminserver boot.properties details

[applmgr@host1 security]$ cat $EBS_DOMAIN_HOME/servers/AdminServer/security/boot.properties
#Sun May 08 17:51:57 EDT 2016
password={AES}RL4vuk2Y1rreNBi0EmKNt0x8zY10ckmKxmv+j64CGak\=
username={AES}YOyAsoH6TA9BvK2qxjayQh3NvkQ4W3/3pygLNc4vWUM\=


2) create decrypt.py file in


[applmgr@host1 security]$ cd $EBS_DOMAIN_HOME/security
[applmgr@host1 security]$ cat decrypt.py
from weblogic.security.internal import *
from weblogic.security.internal.encryption import *
encryptionService = SerializedSystemIni.getEncryptionService(“.”)
clearOrEncryptService = ClearOrEncryptedService(encryptionService)

# Take encrypt password from user
pwd = raw_input(“Paste encrypted password ({AES}fk9EK…): “)

# Delete unnecessary escape characters
preppwd = pwd.replace(“\\”, “”)

# Display password
print “Decrypted string is: ” + clearOrEncryptService.decrypt(preppwd)

[applmgr@host1 security]$ pwd
/erppwrc1/erpapp/fs2/FMW_Home/user_projects/domains/EBS_domain_erppwrc1/security

3) source the   setDomainEnv.sh

[applmgr@host1 security]$ cd $EBS_DOMAIN_HOME/bin
[applmgr@host1 bin]$ ls -ltr
total 56
drwxr-x— 2 applmgr oinstall  4096 May  7 15:29 service_migration
drwxr-x— 2 applmgr oinstall  4096 May  7 15:29 server_migration
drwxr-x— 2 applmgr oinstall  4096 May  7 15:29 nodemanager
-rwxr-x— 1 applmgr oinstall  2010 May  7 15:29 secureWebLogic.sh
-rwxr-x— 1 applmgr oinstall  2003 May  7 15:29 stopWebLogic.sh
-rwxr-x— 1 applmgr oinstall  2473 May  7 15:29 stopManagedWebLogic.sh
-rwxr-x— 1 applmgr oinstall  5704 May  7 15:29 startWebLogic.sh
-rwxr-x— 1 applmgr oinstall  3251 May  7 15:29 startManagedWebLogic.sh
-rwxr-x— 1 applmgr oinstall 17349 May  7 15:29 setDomainEnv.sh
[applmgr@host1 bin]$. ./setDomainEnv.sh


4)run the decrypt password script


[applmgr@host1 security]$ cd $EBS_DOMAIN_HOME/security
[applmgr@host1 security]$ ls -ltr
total 40
-rw-r—– 1 applmgr oinstall   486 May  7 15:29 decrypt.py
-rw-r—– 1 applmgr oinstall 22654 May  7 15:29 XACMLRoleMapperInit.ldift
-rw-r—– 1 applmgr oinstall    64 May  7 15:29 SerializedSystemIni.dat
-rw-r—– 1 applmgr oinstall  2398 May  7 15:29 DefaultRoleMapperInit.ldift
-rw-r—– 1 applmgr oinstall  3301 May  8 17:50 DefaultAuthenticatorInit.ldift
[applmgr@host1 security]$

[applmgr@host1 security]$ java weblogic.WLST decrypt.py

Initializing WebLogic Scripting Tool (WLST) …

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Paste encrypted password ({AES}fk9EK…): {AES}RL4vuk2Y1rreNBi0EmKNt0x8zY10ckmKxmv+j64CGak\=
Decrypted string is: weblogic123

Published by Indraneil Seal

I originally hail from Kolkata, India, and I've dedicated a significant portion of my professional journey to both India and the United States before relocating to Canada during the pandemic. I’m a member of MongoDB's esteemed Technical Services team. Before joining this exceptional group, I held the role of Senior Apps DBA at the Government of Ontario. Prior to that, I spent many years honing my technical(DBA/Cloud) and soft skills with TCS, KBACE Technologies(which later got acquired by Cognizant Technology Solutions) and Oracle Corporation. Throughout my career, I was deeply immersed in day-to-day operations and spearheaded significant projects, including the modernization of platforms, Oracle application and database upgrades. In my last stint at the Government of Ontario, I was also responsible for overseeing various automation initiatives including out-of-place patching, automated EBS Application patching. Outside of my professional life, I have a strong passion for reading, blogging, spending quality time with my family, and my feline buddies, Smokey & Louis. I also relish solitary walks and jogging as personal interests. As a proponent of open source technologies, I'm looking forward to sharing my knowledge and expertise as well as contribute as much as possible to the success of the IT fraternity thereby perpetually expanding my skillset.

Leave a comment