Skip to content

JDK11 build 17, JCE cannot authenticate the provider BC #365

@pethers

Description

@pethers

JDK11 build 17, dropped VeriSign Trust Network cert used for signing
http://jdk.java.net/11/release-notes

Any test using the latest JDK11 build 17(worked well with build16), will fail with below.

Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC
at java.base/javax.crypto.JceSecurity.getInstance(JceSecurity.java:143)
at java.base/javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:252)
at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.initialize(StandardPBEByteEncryptor.java:694)
... 72 common frames omitted
Caused by: java.util.jar.JarException: file:/var/lib/jenkins/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar has unsigned entries - org/bouncycastle/LICENSE.class
at java.base/javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:459)
at java.base/javax.crypto.JarVerifier.verifyJars(JarVerifier.java:314)
at java.base/javax.crypto.JarVerifier.verify(JarVerifier.java:257)
at java.base/javax.crypto.ProviderVerifier.verify(ProviderVerifier.java:129)
at java.base/javax.crypto.JceSecurity.verifyProvider(JceSecurity.java:189)
at java.base/javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:215)
at java.base/javax.crypto.JceSecurity.getInstance(JceSecurity.java:139)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions