Quantcast
Viewing all articles
Browse latest Browse all 14

How to decrypt WebLogic Datasource Password

Copyright 2013 - http://www. Weblogic-Wonders.com

You need to copy the datasource password present in the -jdbc.xml present under \config\jdbc to the password variable in the WLST Script.

Image may be NSFW.
Clik here to view.
encrypted_password

 

Change the path variable to point to your domain

from weblogic.security.internal import *
from weblogic.security.internal.encryption import *
password = "{AES}0+5YrFk+fD9BFIykr3H+wPsNmPRP/GIOUId7SPqBgNg="
path = "D:/Oracle/Middleware/user_projects/domains/pega7_domain/security"
encryptionService = SerializedSystemIni.getEncryptionService(path)
cService = ClearOrEncryptedService(encryptionService)
print "password: " + cService.decrypt(password)

Execute the above script after setting the environment
>setWLSEnv.cmd
>java weblogic.WLST decryptDatasourcePassword.py

You should see the decrypted password in the terminal.

Image may be NSFW.
Clik here to view.
decrypted_password

The post How to decrypt WebLogic Datasource Password appeared first on Middleware wonders!!.


Viewing all articles
Browse latest Browse all 14

Trending Articles