[ https://issues.apache.org/jira/browse/TOMEE-2181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16416950#comment-16416950 ]
Romain Manni-Bucau commented on TOMEE-2181: ------------------------------------------- Hi Felipe, it only happens on tomee plus (not webprofile) with JMS activated cause of bouncycastle which is registered in position 2 by default. You can tune it to be later in the chain (org.apache.activemq.broker.BouncyCastlePosition = 8 for instance in conf/system.properties) and the JVM security provider will be taken and work as expected. Romain > Problem with KeyStore.load after upgrading from 7.0.3 to 7.0.4 > -------------------------------------------------------------- > > Key: TOMEE-2181 > URL: https://issues.apache.org/jira/browse/TOMEE-2181 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server > Affects Versions: 7.0.4 > Reporter: Felipe Jaekel > Priority: Major > Attachments: jaybird-full-2.2.11.jar, > mysql-connector-java-5.1.40-bin.jar, tomee.xml > > > I have a webapp where users can upload a PKCS12 file to digital sign PDF > files. > > After I upgraded from 7.0.3 to 7.0.4, when I try to load the PKCS12 file I'm > getting a _java.security.UnrecoverableKeyException: failed to decrypt safe > contents entry: javax.crypto.BadPaddingException: pad block corrupted_ > > This problem doesn't happen with a plain Tomcat 8.5.20 install, so do I need > additional config for TomEE 7.0.4 or is it a bug? > > Sample project to reproduce the issue: > [github|[https://github.com/fkjaekel/KeyStoreLoad.git|http://example.com/]] > Thanks -- This message was sent by Atlassian JIRA (v7.6.3#76005)