[jboss-jira] [JBoss JIRA] (ELY-1494) SecurityException: JCE cannot authenticate the provider WildFlyElytron

Martin Choma (JIRA) issues at jboss.org
Mon Jan 22 02:02:00 EST 2018


Martin Choma created ELY-1494:
---------------------------------

             Summary: SecurityException: JCE cannot authenticate the provider WildFlyElytron
                 Key: ELY-1494
                 URL: https://issues.jboss.org/browse/ELY-1494
             Project: WildFly Elytron
          Issue Type: Bug
          Components: Testsuite
    Affects Versions: 1.2.0.Beta11
            Reporter: Martin Choma


This happens on HP-UX. It probably related to ELY-1295 fix. Fix have to take HP-UX JDK in account as well.
 
Btw. Isn't there more elegant way how to enable tests for PKCS12. Necessary hack seems to be problematic.

{noformat}
java.lang.SecurityException: JCE cannot authenticate the provider WildFlyElytron
        at javax.crypto.JceSecurity.getInstance(JceSecurity.java:118)
        at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:244)
        at  org.wildfly.security.credential.store.impl.KeyStoreCredentialStoreTest.installWildFlyElytronProvider(KeyStoreCredentialStoreTest.java:117)
Caused  by: java.lang.SecurityException: Cannot verify  jar:file:/hudson_workspace/workspace/wildfly-elytron-unit-tests/8cc93d85/wildfly-elytron/target/classes/!/
        at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:448)
        at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:363)
        at javax.crypto.JarVerifier.verify(JarVerifier.java:289)
        at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:164)
        at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:190)
        at javax.crypto.JceSecurity.getInstance(JceSecurity.java:114)
        ... 2 more
Caused  by: java.security.PrivilegedActionException:  java.io.FileNotFoundException:  /hudson_workspace/workspace/wildfly-elytron-unit-tests/8cc93d85/wildfly-elytron/target/classes  (Is a directory)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:426)
        ... 7 more
Caused  by: java.io.FileNotFoundException:  /hudson_workspace/workspace/wildfly-elytron-unit-tests/8cc93d85/wildfly-elytron/target/classes  (Is a directory)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:225)
        at java.util.zip.ZipFile.<init>(ZipFile.java:155)
        at java.util.jar.JarFile.<init>(JarFile.java:166)
        at java.util.jar.JarFile.<init>(JarFile.java:103)
        at javax.crypto.JarVerifier$2.run(JarVerifier.java:440)
        at javax.crypto.JarVerifier$2.run(JarVerifier.java:427)
        ... 9 more
{noformat}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list