多くのjarに依存するアプレットがあります。Java を 7.45 に更新した後、アプレットは「<strong>このアプリケーションは、JAR ファイル マニフェストにアクセス許可属性が含まれていないため、将来の Java セキュリティ アップデートでブロックされます」というメッセージを生成します。 -permissions」をすべてのマニフェスト ファイルに追加した後、これらすべての jar を「6NRJ」証明書で再署名しました。
すべての jar は適切に署名されていましたが、残念ながら、アプレットは「bcprov-ext-jdk16-140.jar」でのみ例外を生成します。
例外の詳細は次のとおりです。
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
bcprov-ext-jdk16-140.jar は以前、弾む城によって署名されていたと思います。
許可属性を追加した後に「bcprov-ext-jdk16-140.jar」に再署名する方法はありますか?
助けてくれてありがとう