Saturday, January 6, 2018

Steps for Recovering or Decrypting the forgotten WebLogic Server Admin Password

Note: We can do this only if we have file under $DOMAIN_HOME/servers/AdminServer/security

Create a script in $DOMAIN_HOME/security directory 

Copy and paste the below code into it and save the file:

from import *
from 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)

Save and close the file

Set the environment variables as below:

Get encrypted username and password from file of AdminServer as below:



Copy this encrypted password and keep it with you

Decrypting the weblogic server admin password:

Navigate to $DOMAIN_HOME/security directory and run the following command to start decryption:

It will ask us to paste the encrypted password,

Paste the encrypted password we get above and click enter

We will get the decrypted password as below:

1 comment:

  Opatch reports 'Cyclic Dependency Detected' error when patching ODI   Issue: When applying a Patch Set Update (PSU) to WebLogic Se...