Monday 18 June 2018

Decrypt weblogic Credential (boot.properties Credential)



·         Create a file named decrypt_wlscredential.py under DOMAIN_HOME/security.  


    from weblogic.security.internal import *
    from weblogic.security.internal.encryption import *
    encryptionService = SerializedSystemIni.getEncryptionService(".")
    clearOrEncryptService = ClearOrEncryptedService(encryptionService)
    # Take encrypt password from user
    usr = raw_input("Paste encrypted username ({AES}fk9EK...): ")
    pwd = raw_input("Paste encrypted password ({AES}abcd1234…): ")
   # Delete unnecessary escape characters
  prepusr = usr.replace("\\", "")
  preppwd = pwd.replace("\\", "")
  # Display password
  print "Weblogic User is: " + clearOrEncryptService.decrypt(prepusr)
  print "Decrypted Password is: " + clearOrEncryptService.decrypt(preppwd)


·         Set domain environment variables using below script. 

cd DOMAIN_HOME/bin
source setDomainEnv.sh  


·         Copy the encrypted username and password from DOMAIN_HOME/servers/AdminServer/security/boot.properties.
It will be similar to {AES}abcd123…. 


username= {AES}mcXAr6waMC4pchqOuYnDrDWd7JhB4NX9sVnbDBI3DN8=
password= {AES}HgrXPpfgEEGsFJe0erD6HSpvX0FVrEGGOiwOIGumosQ=
·         Execute decrypt_wlsadminpwd.py script using WLST. When prompted paste the encrypted password.
cd DOMAIN_HOME/security
java weblogic.WLST decrypt_wlspwd.py 

·         Provide the credentials as copied earlier from boot.properties 
  

·         The Decrypted Username and Password will be provided as shown above.



                                          *****Thanks for Visiting*****




1 comment:

   Here we are going to discuss the steps required in detail, to extend a connector in OIM for provisioning to target system. Steps are s...