title: java.security.NoSuchAlgorithmException: Algorithm x25519 not available
body: <p>I am getting a "javax.net.ssl.SSLException: Connection reset" for this piece of code</p>
  
  <pre><code>ReadableByteChannel rbc = Channels.newChannel(url.getInputStream());
  </code></pre>
  
  <p>but only when running under a Java 14 JRE built with jlink from  Open JDK 14. The code executes just fine if I point to the full JDK. I suspect something is missing in the JRE, but what is it and why did jlink not copy the missing files accross? My jlink command based on jdeps is as follows:</p>
  
  <pre><code>"C:\Program Files\Java\jdk-14\bin\jlink.exe" --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.datatransfer,java.desktop,java.logging,java.xml --output %AG14InstallDir%\jre_windows2
  </code></pre>
  
  <p>Am I missing a module in the jlink? Any ideas or suggestion on how to track this down?</p>
  
  <p>After adding the debug as suggested, I get this output. What do I need to copy across to fix it?</p>
  
  <pre><code>javax.net.ssl|WARNING|2E|Thread-13|2020-06-07 10:22:24.517 UTC|null:-1|Signature algorithm, ed25519, is not supported by the underlying providers
  javax.net.ssl|WARNING|2E|Thread-13|2020-06-07 10:22:24.518 UTC|null:-1|Signature algorithm, ed448, is not supported by the underlying providers
  javax.net.ssl|WARNING|2E|Thread-13|2020-06-07 10:22:24.519 UTC|null:-1|No AlgorithmParameters for x25519 (
  "throwable" : {
    java.security.NoSuchAlgorithmException: Algorithm x25519 not available
      at java.base/javax.crypto.KeyAgreement.getInstance(Unknown Source)
      at java.base/sun.security.ssl.NamedGroup.&lt;init&gt;(Unknown Source)
      at java.base/sun.security.ssl.NamedGroup.&lt;clinit&gt;(Unknown Source)
      at java.base/sun.security.ssl.SignatureScheme.&lt;clinit&gt;(Unknown Source)
      at java.base/sun.security.ssl.SSLSessionImpl.&lt;clinit&gt;(Unknown Source)
      at java.base/sun.security.ssl.TransportContext.&lt;init&gt;(Unknown Source)
      at java.base/sun.security.ssl.TransportContext.&lt;init&gt;(Unknown Source)
      at java.base/sun.security.ssl.SSLSocketImpl.&lt;init&gt;(Unknown Source)
      at java.base/sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
      at java.base/sun.net.www.protocol.https.HttpsClient.createSocket(Unknown Source)
      .............
  </code></pre>