java - SecurityException with Bouncy Castle -


this question has answer here:

i on mac os , getting issue after performing software update on mac.

caused by: java.lang.securityexception: jce cannot authenticate provider bc     @ javax.crypto.sunjce_b.a(dashoa13*..)     @ javax.crypto.secretkeyfactory.getinstance(dashoa13*..)     @ org.jasypt.encryption.pbe.standardpbebyteencryptor.initialize(standardpbebyteencryptor.java:667)     ... 95 more caused by: java.util.jar.jarexception: cannot parse jar:file:/users/himajumdar/work/jboss/jboss-5.1.0.ga/server/default/tmp/a00c-b5p2h4-hgi84jo1-1-hgi84qe5-w/csa.ear!/lib/bcprov-jdk15-140.jar     @ javax.crypto.sunjce_c.a(dashoa13*..)     @ javax.crypto.sunjce_b.b(dashoa13*..)     @ javax.crypto.sunjce_b.a(dashoa13*..)     ... 98 more 

i tried these suggestions

  1. added security.provider.11=org.bouncycastle.jce.provider.bouncycastleprovider java.security
  2. added bcprov-jdk15-140.jar under /home/jre/lib/ext

but dint help. tried updating jdk6 jdk7 , did same, , got slight different error of unsigned jar

    @ org.jboss.seam.component.newinstance(component.java:2132)     ... 75 more caused by: java.lang.securityexception: jce cannot authenticate provider bc     @ javax.crypto.jcesecurity.getinstance(jcesecurity.java:114)     @ javax.crypto.secretkeyfactory.getinstance(secretkeyfactory.java:243)     @ org.jasypt.encryption.pbe.standardpbebyteencryptor.initialize(standardpbebyteencryptor.java:667)     ... 95 more caused by: java.util.jar.jarexception: jar:file:/users/himajumdar/work/jboss/jboss-5.1.0.ga/server/default/tmp/a00c-4nf5e1-hgiayarg-1-hgiayihg-w/csa.ear!/lib/bcprov-jdk15-140.jar has unsigned entries - csa-ejb-3.45.0.8-snapshot.jar     @ javax.crypto.jarverifier.verifysinglejar(jarverifier.java:462)     @ javax.crypto.jarverifier.verifyjars(jarverifier.java:322)     @ javax.crypto.jarverifier.verify(jarverifier.java:250) 

i have tried jdk16-140.jar, same result. can think of other option overcome issue? thank you.

  1. i got rid of bouncy castle (bcprov-jdk15-140.jar) local jre/jdk ext directory
  2. copied bcprov-jdk15-140.jar under /jboss/jboss-5.1.0.ga/server/default/lib/
  3. changed dependency scope default compile provided bouncycastle bcprov-jdk15 140 provided
  4. added "security.provider.11=org.bouncycastle.jce.provider.bouncycastleprovider" java.security

this reference


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -