Tuesday, August 16, 2011

JSAFE_PaddingException: Could not perform unpadding: invalid pad byte

While working on a issue it was found the Managed server was not able to Authenticate to its Admin Server in a domain. As i was able to restart the Admin Server with the boot.properties on its host, so i tried copying the same boot.properties to Managed server host followed Managed Server startup. While startup the boot.properties will be read and immediately JSAFE_PaddingException: Could not perform unpadding: invalid pad byte was fired.

After some google it was stated that all domain as different salt [SerializedSystemIni.dat] for encryption so sometime if you miss to update the encrypted password with the new salt you get this error.

Below is the log excerpt for the Error.
[com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.].>
<Aug 3, 2011 8:33:02 PM GMT> <Critical> <Security> <BEA-090518> <Could not decrypt the password attribute value of {3DES}71DlKVGKD9YlbDlDZg7p9g\=\= from the file ./boot.properties. If you have copied an encrypted attribute from boot.properties from another domain into ./boot.properties, change the encrypted attribute to its cleartext value then reboot the server. The attribute will be re-encrypted. Otherwise, change all encrypted attributes to their cleartext values, then reboot the server. All encryptable attributes will be re-encrypted. The decryption failed with the exception weblogic.security.internal.encryption.EncryptionServiceException - with nested exception:
[com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.].>

Resolution
A. Using cleartext password
Edit all the occurrences of boot.properties with cleartext password and try restarting the Server instances.
For example:
boot.properties with encrypted values
#Thu Jul 05 19:35:48 GMT 2007
password=
{3DES}71DlKVGKD9YlbDlDZg7p9g\=\=username={3DES}71DlKVGKD9YlbDlDZg7p9g\=\=

boot.properties with cleartext password
#Thu Jul 05 19:35:48 GMT 2007
password=weblogic
username=weblogic

B. Using encrypted password
Use the encrypt utility provided along with Weblogic to encrypt the password first and edit all the occurrences of boot.properties with the encrypted passwords.
1. In a command prompt set the classpath by running the setDomainEnv script located under your domain’s bin folder/directory.
For example: C:\oracle\Middleware\user_projects\domains\base_domain\bin
2. Execute java weblogic.security.Encrypt command which will prompt for the password and the encrypted value is printed as output.
Note: The encrypt utility must be run from the Domain folder as it uses the domain’s password salt file(SerializedSystemIni.dat) for encrypting the cleartext string.

If you are not in the domain directory-structure you can pass the domain folder using the -Dweblogic.RootDirectory parameter.

Windows:
java -Dweblogic.RootDirectory=C:\oracle\Middleware\user_projects\domains\base_domain -cp C:\oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar weblogic.security.Encrypt 

Unix: 
java -Dweblogic.RootDirectory="/app/oracle/Middleware/user_projects/domains/base_domain" -cp "/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar" weblogic.security.Encrypt
3. Edit all the occurrences of boot.properties with the encrypted passwords followed by server instance startup.

Please leave your comments/queries for this post.

57 comments:

Anonymous said...

Thank you!
Your encrypt suggestion worked like a charm.

Mark

Bzzz said...

I had this unpadding problem not on the administrator password but on a ldap authenticator.
The solution applies: I rewrote the password in clear, restarted in dev mode, and tada, the server started.

Anonymous said...

buy tramadol online no prescription cheap tramadol tablets - tramadol 50 mg long does stay your system

Anonymous said...

buy carisoprodol carisoprodol 150 - carisoprodol online purchase

Anonymous said...

buy tramadol online buy tramadol online with mastercard - tramadol ingredients acetaminophen

Anonymous said...

buy tramadol online tramadol online usa - tramadol high review

Anonymous said...

carisoprodol 350 mg carisoprodol 350 mg high - soma carisoprodol no prescription

Anonymous said...

buy tramadol online tramadol expiration - tramadol 100mg erfahrungen

Anonymous said...

buy tramadol online buy tramadol online florida - tramadol 250 mg

Anonymous said...

buy carisoprodol carisoprodol 350 mg good - soma carisoprodol 250 mg

Anonymous said...

buy tramadol online tramadol hcl info - tramadol (ultram) must be used with caution in persons with

Anonymous said...

buy tramadol online order tramadol florida - tramadol hcl get high

Anonymous said...

buy cheap tramadol purchase tramadol cod shipping - help for tramadol addiction

Anonymous said...

how to buy cialis online cialis reviews women - cialis daily treatment

Anonymous said...

cheap generic xanax xanax pills high - long do xanax show up drug test

Anonymous said...

xanax online xanax yellow - xanax for anxiety and panic

Anonymous said...

http://landvoicelearning.com/#51602 tramadol not working - buy tramadol online cod

Anonymous said...

http://landvoicelearning.com/#97734 tramadol ultram same thing - tramadol 37.5 addiction

Anonymous said...

learn how to buy tramdadol tramadol 50mg dosage - buy tramadol online without script

Anonymous said...

buy tramadol tramadol 93/58 - tramadol ev 100 mg tablets

Anonymous said...

learn how to buy tramdadol tramadol wiki - buy tramadol hydrochloride usa

Anonymous said...

buy tramadol buy tramadol online usa cheap - buy tramadol with cod

Anonymous said...

http://landvoicelearning.com/#62431 tramadol dea schedule - tramadol withdrawal hallucinations

Anonymous said...

javax.net.ssl.SSLKeyException

Anonymous said...

buy tramadol online tramadol online - buy tramadol in europe

Anonymous said...

ativan no prescription 0.5 mg ativan and alcohol - xanax vs ativan social anxiety

Anonymous said...

buy tramadol online tramadol dosage dogs after surgery - order tramadol online forum

Anonymous said...

Wow, amazing blog laуout! How long have yοu bеen blogging
for? you make bloggіng look easу.
Τhе οverall look of your website
is mаgnifіcent, as well aѕ the content!


my weblog ... Highly recommended Webpage

Anonymous said...

Υour сurrеnt writе-up proνiԁes verified neceѕsarу to us.
It’s геallу useful and yοu aге certainly еxtremely еducated of this tуρe.
You havе popped ouг ѕight to be ablе tο various viеws on
this kind of mаtteг using intriguіng, notаblе аnd solid сontent matеrial.
Here is my webpage :: Chessok.Com

Anonymous said...



Have a look at my web site; webpage

Anonymous said...

Other FSX Virtual Airlines are based on real airlines,
from major carriers to small operators. While the leader is placing protection and
clipping the rope through, the second climber is removing previously
placed protection. However, such training programs are tough to wave through since it require tons of learning patience and willingness to proven one’s innate skills.
As with most of the electronics, the main enemy of golf
simulator
is the dust. If you want to manage your own virtual airline then you need to visit the main Sim - Miles website
and complete a virtual airline application form.

Anonymous said...

37 kits (round that up to 9 total quart and a half kits).
Blistering heat and bitter freezing cold can crack the toughest of concrete.
It is advantageous for the customer to compare the prices
for an additional dumpster rental from the normal waste
removal company against an offer made by a collector that will
place a dumpster for a one-time pickup.

Anonymous said...

Your οwn post features verified benefісial to
mе. It’s quіte eduсational and you really are clearly extremely well-infοrmed in this region.
You have gοt оpened up my personal еye to be
able tо numeгous viеwѕ оn
this ѕubject mаtteг along with іntriguing and reliable content material.
Also visit my web site Buy Valium Online

Anonymous said...

Furthermore, unlike most diets that are high in protein is and full
of clean foods then you will never be more full and you wont be covering your nutritional needs.
Chia seeds can be consumed occasionally for dieters without autoimmune diseases.
Most important, from these books on genotype diets, metabolic types, blood
types, and how your skin and acne have improved. Beans- All forms of beans,
which are also used such as Brussels sprouts, broccoli, Brussels sprouts and
amaranth leaves.

Feel free to visit my page :: peleo diet

Anonymous said...

Yοur artіcle proνiԁes establіshed useful to mysеlf.
It’s quite useful and уou're obviously extremely educated of this type. You get exposed my eyes for you to numerous thoughts about this specific topic using intriquing, notable and sound content material.
Also visit my weblog :: Valium

Anonymous said...

The diet may be difficult to follow. dieters may choose
to eat free-range or wild caught meats as they offer a better fatty acid profile like avocado, olive and flaxseed are allowed
in limited amounts, as are alcoholic beverages and coffee.

In the past 20 years a revival of interest in chia seeds has
occurred primarily because of their underlying insulin resistance,
diabetes, obesity, hypertension and osteoporosis. We preferred the old functionality, though we imagine
some will prefer the new as well.

my website: the paleo recipe book

Anonymous said...

Youг writе-uρ feаtures cοnfirmed
beneficial to uѕ. It’s extrеmely useful and you're certainly very experienced of this type. You have got exposed my personal eyes to be able to numerous thoughts about this specific matter along with interesting and strong content material.

Here is my website: viagra
Also visit my weblog - viagra

Anonymous said...

Coconut oil is another fat used by both the diet solution program review and Primal enthusiasts assert that 10, 000 years before the end of
the challenge that she would choose to keep incorporating the the diet solution program review Diet.


my web site hunter diet foods

Anonymous said...

Excellent post. I was checking constantly this blog and I'm impressed! Extremely helpful information particularly the last part :) I care for such info much. I was seeking this particular info for a long time. Thank you and good luck.

my website the tao of badass buy

Anonymous said...

I'm now not certain where you are getting your information, but great topic. I needs to spend some time finding out much more or figuring out more. Thank you for excellent information I used to be searching for this information for my mission.

Here is my web page; dating beautiful woman

Anonymous said...

Appreciation to my father who shared with me on the topic of this
webpage, this web site is genuinely remarkable.

My weblog - tao of badass

Anonymous said...

Good day! I know this is kinda off topic but I was wondering which blog platform are you using for this website?
I'm getting tired of Wordpress because I've had issues with hackers and I'm looking at alternatives for another platform. I would be great if you could point me in the direction of a good platform.

Also visit my homepage; joshua pellicer tao pdf

Anonymous said...

This is very fascinating, You're an overly professional blogger. I have joined your rss feed and sit up for searching for extra of your great post. Additionally, I have shared your website in my social networks

Feel free to visit my webpage: bmi calculator women

Anonymous said...

Because everybody's ability to absorb energy is different, the reaction of the water is salted, some suspect the foot all natural cleanse bath users are happy because their pain are going away and they can do.

Also visit my blog post; what can clean your system

Anonymous said...

Your curгent гeport fеаtures ѵеrified beneficial to me.
Ӏt’s quite informative and yοu're certainly extremely knowledgeable in this area. You get exposed my own face to be able to numerous opinion of this kind of topic with intriquing, notable and sound articles.

Here is my web site: Buy Valium Online

Anonymous said...

Your cuгrent pοst оffеrs verified beneficial
to mе. It’s extrеmely informative and
you're certainly extremely well-informed in this region. You have got opened my personal eye for you to various views on this specific subject using intriguing, notable and sound written content.

Feel free to surf to my site :: Buy Valium

Anonymous said...

Yοur artiсle has prοven necessarу to us.
ӏt’s quitе infοrmаtivе and you are naturallу extremеly
educated in this area. Υou haѵe got opеned up my
own eye to ѵаryіng opinion of thiѕ speсific subjеct matter using intгiguing
and reliable content materiаl.

Chеck оut my blog iiitmk.ac.in

Anonymous said...

Right now it appears like Movable Type is the preferred
blogging platform available right now. (from what I've read) Is that what you are using on your blog?

Here is my blog post: diet plans for women to lose weight

Anonymous said...

A Dodrio made a cameo in A Chansey Operation.
Some of the baby video game rugshower that can be played online.
In fact, many people consider this form of free entertainment normal
part of their team for the night.

Review my blog - best buy video game coupons

Anonymous said...

They still invite me to different events, and a lot of this type of
tactic. More years of study will be needed. Any
small philadelphia injury attorney owner
will not return large profit. The primary source of this article appeared on AOL Small Philadelphia Injury Attorney on
7/7/10. The recovery in the euro area is well on track and
the euro rallying. That's the average investment required, according toForbes.

My blog post; car accident lawyer pennsylvania

Anonymous said...

My partner and I stumbled over here coming from a different website
and thought I might as well check things out. I like what I
see so now i'm following you. Look forward to checking out your web page for a second time.

Visit my web blog :: diet plans that work fast

Anonymous said...

It worked for my Samsung ML-1210. Many thanks. I
will select a new printer due to Home windows 8.



Here is my web site - devinfo.info

Anonymous said...

Howdy! I could have sworn I've been to this blog before but after browsing through some of the post I realized it's
new to me. Anyhow, I'm definitely happy I found it and I'll be
bookmarking and checking back frequently!

Feel free to surf to my weblog teen porno tube

Anonymous said...

For win 7 download. many thanks.

Stop by my webpage; xerox phaser 8560 service manual

Anonymous said...

I am sure this post has touched all the internet users,
its really really good piece of writing on building up
new webpage.

Feel free to surf to my blog mp3 player mit bluetooth

Anonymous said...

An impressive share! I have just forwarded this onto a colleague
who was doing a little homework on this. And he actually ordered me breakfast
because I found it for him... lol. So allow me to reword
this.... Thank YOU for the meal!! But yeah, thanks
for spending the time to talk about this topic here on your blog.


My blog post xerox 8560 part numbers

Anonymous said...

Thanks, pointed me in the right direction