Hi Felipe,

did you do a diff between tomee/lib and your WEB-INF/lib? we have some
impacting changes in last release. Also what is the stack you get and
the calling code if you can share it.

Romain Manni-Bucau
@rmannibucau |  Blog | Old Blog | Github | LinkedIn


2017-10-26 14:57 GMT+02:00 Felipe Jaekel <fkjae...@gmail.com>:
> Hi,
>
> I have a webapp where the user can upload a PFX file to digitally sign PDF
> files. After upgrading from 7.0.2 to 7.0.4 I'm getting this exception:
>
> java.security.UnrecoverableKeyException: failed to decrypt safe contents
> entry: javax.crypto.BadPaddingException: pad block corrupted
>
> First I tough it was something related to the upload process, but even
> after pointing to a local PFX file and hardcoding the password I still get
> this exception on 7.0.4.
>
> ks = KeyStore.getInstance(KeyStore.getDefaultType());
> ks.load(new FileInputStream("/home/fjaekel/Desktop/anima.pfx"),
> "anima".toCharArray());
>
> Debugging on both servers the KeyStore provider is *SUN version 1.8* and
> the type is *jks*. Tested with OpenJDK 64-Bit Server VM (build 25.111-b15,
> mixed mode)  and Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed
> mode).
>
> Any ideias?
>
> Thanks

Reply via email to