Khalil bezzine
2014-01-16 14:05:28 UTC
I have an applet which depends with many jars. After I update the java to
7.45 the applet generate message saying *This application will be blocked
in a future Java security update because the JAR file manifest does not
contain the Permissions attribute* I added permission attribute *Permissions:
all-permissions* to all manifest files after that I resigned all these
jars by our "6NRJ" certificate.
All jars was well signed but unfortunately the applet generate an exception
only in "bcprov-ext-jdk16-140.jar".
Here the exception details:
java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
at javax.crypto.JceSecurity.getInstance(JceSecurity.java:101)
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:249)
at org.bouncycastle.cms.CMSEnvelopedHelper.createKeyGenerator(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedHelper.createSymmetricKeyGenerator(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown
Source)
at com.atexo.mpe.applet.AppletDiagnostic.init(AppletDiagnostic.java:142)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown
Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source) Caused by:
java.util.jar.JarException:
http://wma-migration.whitecapetech.local/ressources/applet/bcprov-ext-jdk16-140.jar
is not signed by a trusted signer.
at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:503)
at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)
at javax.crypto.JarVerifier.verify(JarVerifier.java:250)
at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)
at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)
at javax.crypto.JceSecurity.getInstance(JceSecurity.java:98)
... 8 more
I think that bcprov-ext-jdk16-140.jar was signed before by bouncy castle.
Is there a way to re-sign "bcprov-ext-jdk16-140.jar" after adding the
permission attribute ?
Thanks in advance for help.
7.45 the applet generate message saying *This application will be blocked
in a future Java security update because the JAR file manifest does not
contain the Permissions attribute* I added permission attribute *Permissions:
all-permissions* to all manifest files after that I resigned all these
jars by our "6NRJ" certificate.
All jars was well signed but unfortunately the applet generate an exception
only in "bcprov-ext-jdk16-140.jar".
Here the exception details:
java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
at javax.crypto.JceSecurity.getInstance(JceSecurity.java:101)
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:249)
at org.bouncycastle.cms.CMSEnvelopedHelper.createKeyGenerator(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedHelper.createSymmetricKeyGenerator(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataGenerator.generate(Unknown
Source)
at com.atexo.mpe.applet.AppletDiagnostic.init(AppletDiagnostic.java:142)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown
Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source) Caused by:
java.util.jar.JarException:
http://wma-migration.whitecapetech.local/ressources/applet/bcprov-ext-jdk16-140.jar
is not signed by a trusted signer.
at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:503)
at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322)
at javax.crypto.JarVerifier.verify(JarVerifier.java:250)
at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161)
at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187)
at javax.crypto.JceSecurity.getInstance(JceSecurity.java:98)
... 8 more
I think that bcprov-ext-jdk16-140.jar was signed before by bouncy castle.
Is there a way to re-sign "bcprov-ext-jdk16-140.jar" after adding the
permission attribute ?
Thanks in advance for help.
--
*Best Regards,*
* --------------------------------------**-**-**-**-*
*| Mohamed Khalil BEZZINE*
*| Computer science engineer *
*| Phone : (+216) 52 86 21 07 *
* --------------------------------------**-**-**-**-*
*Best Regards,*
* --------------------------------------**-**-**-**-*
*| Mohamed Khalil BEZZINE*
*| Computer science engineer *
*| Phone : (+216) 52 86 21 07 *
* --------------------------------------**-**-**-**-*