Installed and configured four applications servers in our Azure environment. However, after importing directory XML
Second node is throwing multiple errors after attempting to restart the Identity Manager Service.
Server logs:
2023-06-05 13:26:44,984 INFO [ims.Main] (ServerService Thread Pool -- 143) * Starting environment: Environmenttest144
2023-06-05 13:26:44,986 ERROR [com.netegrity.crypto.RC2128CBCPKCS5PaddingHandler] (ServerService Thread Pool -- 143) org.bouncycastle.crypto.InvalidCipherTextException: Error finalising cipher data: pad block corrupted
2023-06-05 13:26:45,004 ERROR [com.netegrity.crypto.RC2128CBCPKCS5PaddingHandler] (ServerService Thread Pool -- 143) org.bouncycastle.crypto.InvalidCipherTextException: Error finalising cipher data: pad block corrupted
All Identity Manager
The /iam_im.ear/config/com/netegrity/config/keys/keyParams.properties shows a very minor difference with the same quotes key but it caused the issue:
Working example:
"1234"
Not working example:
“1234”
The quotes have a slight curl used by fonts like Arial. This was caused by copying and pasting from Word Processors like Word. The quotes were copied into the notepad with an italic format which notepad still read as italic so the cipher was incorrect causing the message. Deleted the quotes and changed to non-formatted "xxxx".
After restart this resolved the issue.