How to Decrypt/Encrypt WebLogic and Datasource Password via WLSDM?

WLSDM for WebLogic
Jan 29, 2019 · 3 min read

We prepared how to decrypt WebLogic passwords and how WLSDM decrypt WebLogic passwords(even other domains passwords) easily.

Where do we use this feature?

Consider a scenario you have one domain cloned by another domain and you have to add datasources to new domain. In this scenerio use WLSDM Decrtypt/Encrypt feature and get WebLogic data source username and passwords quickly !

1.The OLD way; wlst scripts!
2.WLSDM Feature: Decrypt/Encrypt WebLogic passwords
3.WLSDM Feature: Decrypt WebLogic Data Source passwords

Lets see How its works step by step!

1. The OLD way; wlst scripts!
Navigate to /oracle_common/common/bin
Execute the wlst.sh

Image for post
Image for post

You will get WLST prompt in offline mode. Than set the following variables. (Replace the domain path with yours)

domain = “/home/madops/oracle/domains”  
service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain)
encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service)
Image for post
Image for post

Now we have to find our encyrpted password. Execute the below command to find your encrypted password.

grep -R “{AES}”
Image for post
Image for post

Note: encrypted code starting with AES you can find in a boot.properties file.

Replace the the value of with the copied value from boot.properties in the below command;

print “Weblogic server Admin password : %s” %encryption.decrypt(“<encrypted_value>“)

Finally the WebLogic password will be display.

Image for post
Image for post

2.How WLSDM decrypt WebLogic passwords(even other WebLogic domains) and datasource passwords easily? Lets see how it works…

2.1 Go to WLSDM Console.

Image for post
Image for post

2.2"How to access Decrypt-Encrypt Tool?” Go to “Operational Tools & Utils > Decrypt — Encrypt”

Image for post
Image for post

2.3 You are able to Decrypt and Encrypt your WebLogic password. Take below screen-capture as reference.

Image for post
Image for post

2.4 Lets encrypt your WebLogic password and see how it works.

Image for post
Image for post

3. Decrypt Weblogic Data Source passwords
3.1.Go to “Domain Summary”

Image for post
Image for post

3.2.Navigate “Data Sources” tab then click “show password” button to see datasource password.

Image for post
Image for post

3.3.Finally click “Decrypt” button.

Image for post
Image for post

Please Watch Decrypt WebLogic Data Source Passwords youtube tutorial:

WLSDM for WebLogic

Written by

WLSDM for WebLogic

Native Oracle WebLogic Monitoring WLSDM is developed by the best WebLogic developers for the best WebLogic administrators to support mission critical HA domains. Supports all plain WebLogic and Fusion Middleware (FMW) WebLogic domains. Download now! https://wlsdm.com/download

WLSDM for WebLogic

Written by

WLSDM for WebLogic

Native Oracle WebLogic Monitoring WLSDM is developed by the best WebLogic developers for the best WebLogic administrators to support mission critical HA domains. Supports all plain WebLogic and Fusion Middleware (FMW) WebLogic domains. Download now! https://wlsdm.com/download

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store