Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4114

AuthAndEncryptProtocolTest fails with InvalidKeyException

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Test Suite
    • None

      The test is here: https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/java/org/infinispan/server/test/jgroups/auth/AuthAndEncryptProtocolTest.java
      and fails during the servers startup with this error:

      16:03:36,517 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.jgroups.channel.clustered: org.jboss.msc.service.StartException in service jboss.jgroups.channel.clustered: java.security.InvalidKeyException: No installed provider supports this key: sun.security.provider.DSAPublicKeyImpl
              at org.jboss.as.clustering.jgroups.subsystem.ChannelService.start(ChannelService.java:74)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_06]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_06]
              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
      Caused by: java.security.InvalidKeyException: No installed provider supports this key: sun.security.provider.DSAPublicKeyImpl
              at javax.crypto.Cipher.chooseProvider(Cipher.java:878) [jce.jar:1.7.0_04-ea]
              at javax.crypto.Cipher.init(Cipher.java:1653) [jce.jar:1.7.0_04-ea]
              at javax.crypto.Cipher.init(Cipher.java:1549) [jce.jar:1.7.0_04-ea]
              at org.jgroups.auth.X509Token.setCertificate(X509Token.java:188)
              at org.jgroups.protocols.AUTH.init(AUTH.java:83)
              at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:847)
              at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:467)
              at org.jgroups.JChannel.init(JChannel.java:824)
              at org.jgroups.JChannel.<init>(JChannel.java:158)
              at org.jboss.as.clustering.jgroups.MuxChannel.<init>(MuxChannel.java:37)
              at org.jboss.as.clustering.jgroups.JChannelFactory.createChannel(JChannelFactory.java:81)
              at org.jboss.as.clustering.jgroups.subsystem.ChannelService.start(ChannelService.java:69)
              ... 5 more
      

      The server config attached.

        1. clustered-auth.xml
          16 kB
          Jakub Markos
        2. clustered-auth-with-encrypt.xml
          17 kB
          Jakub Markos
        3. clustered-auth-wrong-certificate.xml
          17 kB
          Jakub Markos

              mircea.markus Mircea Markus (Inactive)
              jmarkos Jakub Markos (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: