November 1, 2022

How to Decrypt or Recover the Forgotten WebLogic Admin Password in R12.2

 Hi All,

In this blog post, I am going to share how to recover or decrypt the forgotten WebLogic admin password in Oracle E-Business Suite R12.2

Log in to your application server using the applmgr user and source the run file system

then follow the below steps :

Get the encrypted password from the boot.properties file as shown below 

[applmgr@ebsapps ~]$ cd /u01/applmgr/VIS/fs1/FMW_Home/user_projects/domains/EBS_domain_VIS/servers/AdminServer/security/

[applmgr@ebsapps security]$ cat boot.properties

username={AES}5ygOPqtqFq3F6s5UHUiHIbQtUmSzhNwZnU9QrKbjsZ4=

password={AES}/xtW9bP7wA07YHbynvidcnaSYoYylL0y55v2NflfmoE=

[applmgr@ebsapps security]$


Now let's decrypt the password 

[applmgr@ebsapps ~]$ sh /u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/common/bin/wlst.sh

CLASSPATH=/u01/applmgr/VIS/fs1/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/util/jdk64/lib/tools.jar:/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/applmgr/VIS/fs1/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/u01/applmgr/VIS/fs1/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/applmgr/VIS/fs1/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/util/jdk32/lib/dt.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/util/jdk32/lib/tools.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/util/jdk32/jre/lib/rt.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/shared-libs/ebs-3rdparty/WEB-INF/lib/ebs3rdpartyManifest.jar:/u01/applmgr/VIS/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-fmw/WEB-INF/lib/ebsFMWManifest.jar:/u01/applmgr/VIS/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/applmgr/VIS/fs1/FMW_Home/oracle_common/modules/oracle.uix_11.1.1/uix2.jar:/u01/applmgr/VIS/fs1/EBSapps/comn/java/classes:/u01/applmgr/VIS/fs1/EBSapps/10.1.2/forms/java:/u01/applmgr/VIS/fs1/EBSapps/10.1.2/forms/java/frmall.jar:/u01/applmgr/VIS/fs1/EBSapps/10.1.2/jlib/ewt3.jar:/u01/applmgr/VIS/fs1/EBSapps/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/u01/applmgr/VIS/fs1/FMW_Home/utils/config/10.3/config-launch.jar::/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/applmgr/VIS/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbytools.jar::

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> domain="/u01/applmgr/VIS/fs1/FMW_Home/user_projects/domains/EBS_domain_VIS/"
wls:/offline> service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain)
wls:/offline> encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)
wls:/offline> print encryption.decrypt("{AES}/xtW9bP7wA07YHbynvidcnaSYoYylL0y55v2NflfmoE=")

your password will show as my password is marked red in the below screenshot.



Hope this article helps you in decrypting the WebLogic admin password.

Thanks for reading.

Shaik Ahmed Ali.
Regards.