How to encrypt password for Weblogic server in Linux

Weblogic has a key feature to serialize and deserialize the passwords in order to tighten security. From admin console, if you provide any password, Weblogic will automatically encrypt it after a server restart. As a Weblogic admin, at some point of time, you might have to encrypt a password directly and put it in config.xml file. For the first time, I scratched my head too to do it for a Linux based Weblogic server.

  1. From puuty,go to Weblogic domain ($WL_DOMAIN), then to config directory.
  2. Copy Serializedsystemini.dat file from security directory ($WL_DOMAIN/security) to config directory.
  3. Create a shell script and paste the below code:
# Encrypts  password in wls environmet

export APP=application_name
export ENV=prod
export FMW_HOME=/opt/weblogic-10.3.6
export DOMAIN_NAME=osm_domain
export PATH=$FMW_HOME/jdk1.6.0_65/bin:$PATH

cd /apps/$APP/$ENV/weblogic/$DOMAIN_NAME/bin
. ./

java -cp $FMW_HOME/wlserver_10.3/server/lib/weblogic.jar:$CLASSPATH $PASSWORD

Always remember to change the application_name and ENV as per your Weblogic application name and environment.

  1. Here is the outcome. The password provided was ‘weblogic’:
[app@unixbox config]$ ./encrypt


Put this encrypted password directly into Weblogic config.xml and restart the server. The job is done. Your headache is over. Rest will be handled by Weblogic itself.


About Swapratim

Blog Writer in Medium for Chatbots Magazine - world's biggest chatbot magazine. Also he writes in Bot Publication and Chatbots Journal on regular basis ( Experienced in IT development & support pursuing different roles & responsibilities. He has worked on several innovative projects. Apart from this, he likes to share his learning with everyone which he had learned over years. Sole purpose of this blog is to share the author's knowledge in IT, passion for travel and recent trends with you. Hope you will enjoy his contents.
This entry was posted in Various Scripting Tutorials. Bookmark the permalink.

3 Responses to How to encrypt password for Weblogic server in Linux

  1. Emily says:

    Hi my name is Emily and I just wanted to drop you a quick note here instead of calling you. I discovered your How to encrypt password for Weblogic server in Linux | Techmatic page and noticed you could have a lot more traffic. I have found that the key to running a successful website is making sure the visitors you are getting are interested in your website topic. There is a company that you can get keyword targeted traffic from and they let you try their service for free for 7 days. I managed to get over 300 targeted visitors to day to my website. Visit them here:


  2. But a smiling visitant here to share the love (:, btw great design and style .

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s