I have an applet which is used to sign and crypt files. After updating the java to 7u45, my applet receives warning message saying: "This application will be blocked in a future Java security update because the JAR file manifest does not contain the Permissions attribute"
Then I added the following attributes :
Permissions: all-permissions
Application-Library-Allowable-Codebase: *
Application-Name: Signature-Chiffrement
Caller-Allowable-Codebase: *
Codebase: *
to the main jar and all jar dependencies, After that I re-signed all jars.
However the warning message didn’t disappear because "bcprov-ext-jdk16-140.jar" is not signed by a trusted signer here is the exception:
java.security.NoSuchProviderException: JCE cannot authenticate the provider BC ....
Caused by: java.util.jar.JarException: bcprov-ext-jdk16-140.jar is not signed by a trusted signe…
Apparently the “bcprov-ext-jdk16-140.jar” was signed by bouncy castle. I tried to use another bouncy castle jar but unfortunately all this jar does not contain permission attribute.
- Is there a way to add permission attribute to "bcprov-ext-jdk16-140.jar" which is signed before by bouncy castle? Or to get a new bcprov-ext JAR having the needed manifest attributs?
- Is it possible to add permission attribute in one place such as our main jar depends to others jars?
Thanks in advance for your help