ianjoneill commented on PR #639:
URL: https://github.com/apache/mina-sshd/pull/639#issuecomment-2498158992

   If you're running on e.g. Java 21 without BC or `net2.i2p.crypto`, it errors 
out forcing the use any EdDSA/Ed25519 functionality.
   
   e.g. if you configure mina in client mode to only support connecting with 
`ssh-ed25519`, it will error out with:
   
   ```
   Caused by: java.security.NoSuchAlgorithmException: EdDSA provider not 
supported
        at 
org.apache.sshd.common.util.security.SecurityUtils.generateEDDSAPublicKey(SecurityUtils.java:722)
        at 
org.apache.sshd.common.util.buffer.keys.ED25519BufferPublicKeyParser.getRawPublicKey(ED25519BufferPublicKeyParser.java:46)
        at 
org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser$2.getRawPublicKey(BufferPublicKeyParser.java:102)
        at 
org.apache.sshd.common.util.buffer.Buffer.getRawPublicKey(Buffer.java:573)
   ```
   
   Due to there being no `SecurityProviderRegistrar` available that provides an 
`EdDSASupport` implementation.
   
   If you don't specify the signatures when building the mina client, it won't 
propose `ssh-ed25519` - again because there is no applicable `EdDSASupport` 
implementation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to