After migrated WAS 7 to WAS 8.5.5, by using WASPreUpgrade, WASPostUpgrade, I did synchronize the node along with Dmgr and had the following error during nodeagent start:
[7/29/18 7:39:26:536 GMT] 00000001 WSKeyStore E CWPKI0033E: The keystore located at “/WebSphere855/AppServer/profiles/xx/config/cells/xxxx/nodes/Commerce_node/key.p12” failed to load due to the folowing error: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded.
So, the resolution was:
1 – Stopped new WAS
2 – Cleaned up the Caches on profiles: temp, wstemp, config/temp.
3 – Copy all key.p12 from old WebSphere to the same path to the newest WAS Folder. I ran “find /Old/Was/AppServer -name key.p12
and copied them to the new WAS folder.
Before doing that, do a Copy Backup of key.p12 files.
4 – started Dmgr
5 – synchronized Nodes
6 – Started nodeagent
7 – started AppServer.