EC KeyPairGenerator not available

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ECDSA in jdk1.6
    via by 843811,
  • 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 <> 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( at org.apache.sshd.common.session.AbstractSession.doHandleMessage( at org.apache.sshd.common.session.AbstractSession.handleMessage( at org.apache.sshd.client.session.ClientSessionImpl.handleMessage( at org.apache.sshd.common.session.AbstractSession.decode( at org.apache.sshd.common.session.AbstractSession.messageReceived( at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived( at$1.onCompleted( at$1.onCompleted( at$ at Method) at at at$ at$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Authentication failed
    via by Damjan Jovanovic,
  • Enable HTTPS got "Could not generate DH keypair"
    via by Guofeng Zhang,
    • EC KeyPairGenerator not available at

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,