java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available

Apache's JIRA Issue Tracker | Damjan Jovanovic | 8 months ago
  1. 0

    On a fresh install of CentOS 7 with OpenJDK 1.8, running karaf container versions > 4.0.2 either with "bin/karaf" or as a service (whether sysvinit or systemd), trying to log in with "bin/client" always fails with an exception. Oracle JDK - by comparison - works. "git bisect" narrowed down the regression to the following commit: 539540cde099aee52fd523a09aca92e36522261c is the first bad commit commit 539540cde099aee52fd523a09aca92e36522261c Author: Freeman Fang <freeman.fang@gmail.com> Date: Wed Oct 14 12:09:09 2015 +0800 [KARAF-4062]Karaf client does now work after installing BouncyCastle :040000 040000 926f15997510a671ff77db9623f8b65ce4186706 da83c22e043de3004a620f1cc88e25ee672bd09d M client The exception is: # bin/client Logging in as karaf 3771 [sshd-SshClient[593634ad]-nio2-thread-2] WARN org.apache.sshd.client.session.ClientSessionImpl - Exception caught java.lang.IllegalStateException: Unable to negotiate key exchange for kex algorithms (client: ecdh-sha2-nistp256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ecdh-sha2-nistp521 / server: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1) at org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159) at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388) 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

    Apache's JIRA Issue Tracker | 8 months ago | Damjan Jovanovic
    java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available
  2. 0

    ECDSA in jdk1.6

    Oracle Community | 10 years ago | 843811
    java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available
  3. 0

    db:: 3.29::Exception when importing ECDSA X.509 public key m1

    hivmr.com | 4 months ago
    java.security.NoSuchAlgorithmException: EC KeyPairGenerator not available
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error of automatic update of IM CLI: 'Could not generate DH keypair'

    GitHub | 3 months ago | dmytro-ndp
    javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
  6. 0

    SFTP ceased to work in 0.9.8

    GitHub | 3 months ago | xiexed
    java.io.IOException: com.sshtools.ssh.SshException: Failed to process key exchange [java.security.NoSuchAlgorithmException] [com.sshtools.ssh.SshException]

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.NoSuchAlgorithmException

      EC KeyPairGenerator not available

      at java.security.KeyPairGenerator.getInstance()
    2. Java RT
      KeyPairGenerator.getInstance
      1. java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:218)
      1 frame
    3. Apache Mina SSHD :: Core
      Nio2CompletionHandler$1.run
      1. org.apache.sshd.common.util.SecurityUtils.getKeyPairGenerator(SecurityUtils.java:155)
      2. org.apache.sshd.common.kex.ECDH.<init>(ECDH.java:51)
      3. org.apache.sshd.client.kex.ECDHP256.getDH(ECDHP256.java:48)
      4. org.apache.sshd.client.kex.AbstractDHGClient.init(AbstractDHGClient.java:71)
      5. org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:390)
      6. org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)
      7. org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)
      8. org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)
      9. org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)
      10. org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
      11. org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)
      12. org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)
      13. org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
      13 frames
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. Apache Mina SSHD :: Core
      Nio2CompletionHandler.completed
      1. org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
      1 frame
    6. Java RT
      AsynchronousSocketChannel.read
      1. sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      2. sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
      3. sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
      4. sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
      5. sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
      6. java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:420)
      6 frames
    7. Apache Mina SSHD :: Core
      Nio2CompletionHandler$1.run
      1. org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:170)
      2. org.apache.sshd.common.io.nio2.Nio2Connector$1.onCompleted(Nio2Connector.java:60)
      3. org.apache.sshd.common.io.nio2.Nio2Connector$1.onCompleted(Nio2Connector.java:53)
      4. org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
      4 frames
    8. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    9. Apache Mina SSHD :: Core
      Nio2CompletionHandler.completed
      1. org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
      1 frame
    10. Java RT
      Thread.run
      1. sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      2. sun.nio.ch.Invoker$2.run(Invoker.java:218)
      3. sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames