we are facing CryptoException while decrypting the text in AEM 6.0 version. Actually one of our environment is having this issue. we dont have this issue in other environments. This issue is specific to only one environment. Literally we tried all the options.
Tried options:- Deleted /etc/key folder in publish server and restarted Adobe Granite Crypto Bundle and restarted pub server too. But nothing is helped and still facing the same error.
Below is complete error message
Caused by: com.adobe.granite.crypto.CryptoException: Cannot convert byte data
... 136 common frames omitted
Caused by: com.adobe.granite.crypto.CryptoException: Failed decrypting cipher text
... 137 common frames omitted
Caused by: com.rsa.jsafe.JSAFE_PaddingException: Invalid padding.
at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source)
... 138 common frames omitted
Is there any config which we should cross verify? Pls suggest
Was this encrypted by the same publisher which is decrypting it?
If you have multiple publish, make sure those are using same keys.
This is not clustering environment. Encryption and decryption are happening in one pub servers.
Have you written custom code that performs encryption operations? Never seen this happen OOTB.
I was talking to Support about this. As this is not a normal use case or even documented - there may be a bug somewhere. Please open a support ticket here.
I'm seeing the same exception during package install for an OSGI xml config file containing an encrypted password.
I was seeing the same error during package install for an OSGI xml config file. Escape the curly braces for the package to install.