Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1494

SecurityException: JCE cannot authenticate the provider WildFlyElytron

    XMLWordPrintable

Details

    Description

      This happens on HP-UX in KeyStoreCredentialStoreTest. 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.

      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
      

      [1] https://jenkins.hosts.mwqe.eng.bos.redhat.com/hudson/view/EAP7/view/EAP7-Security/view/Wildfly-Elytron/job/wildfly-elytron-unit-tests/40/jdk=jdk1.8_hpux,label=eap-sustaining&&hpux11v3/testReport/

      Attachments

        Issue Links

          Activity

            People

              jkalina@redhat.com Jan Kalina (Inactive)
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: