Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3754

java.security.InvalidAlgorithmParameterException trying to connect with Fuse client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.2.1
    • None
    • None
    • % %

      With the latest build (jboss-fuse-6.2.1.redhat-018 build) I get the following error if I try to connect with the fuse client:

      [kearls@planet-express fuse-kit-smoketest] $ ~/fuse/jboss-fuse-6.2.1.redhat-018/bin/client -u admin -p admin
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      Logging in as admin
      520 [sshd-SshClient[b62fe6d]-nio2-thread-2] WARN org.apache.sshd.client.session.ClientSessionImpl - Exception caught
      java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 2048 (inclusive)
      	at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DHKeyPairGenerator.java:120)
      	at java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:674)
      	at java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:411)
      	at org.apache.sshd.common.kex.DH.getE(DH.java:65)
      	at org.apache.sshd.client.kex.DHGEX.next(DHGEX.java:118)
      	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:425)
      	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)
      	at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)
      	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)
      	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)
      	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
      	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)
      	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)
      	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
      	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      	at sun.nio.ch.Invoker$2.run(Invoker.java:218)
      	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Authentication failed
      

      WORKAROUND
      A client script (with its libs) from a 6.2.0 instance can connect without errors to a 6.2.1 server

            pantinor@redhat.com Paolo Antinori
            kearls@redhat.com Kevin Earls (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: