vorburger commented on issue #747:
URL: https://github.com/apache/mina-sshd/issues/747#issuecomment-2844913453

   BTW I actually don't really want to use 
`KeyPairGenerator.getInstance("Ed25519")` directly.
   
   After glancing at 
https://github.com/apache/mina-sshd/blob/master/docs/dependencies.md#ed25519-java
 and 
https://github.com/apache/mina-sshd/blob/master/docs/security-providers.md, I 
figured that the right way to do this is simply via (something like) this:
   
   ```java
   // TODO SimpleGeneratorHostKeyProvider vs. 
BouncyCastleGeneratorHostKeyProvider ?!
   var keyPairProvider = new SimpleGeneratorHostKeyProvider(hostKeyStorePath);
   keyPairProvider.setAlgorithm("Ed25519");
   server.setKeyPairProvider(keyPairProvider);
   ```
   
   This seems to work (and leads to `ssh-ed25519` in `known_hosts`); thus 
self-closing this issue now.


-- 
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