Susmit Sarkar created SSHD-1142:
-----------------------------------
Summary: To pick up Mac/Cipher preferred values out of the default
list
Key: SSHD-1142
URL: https://issues.apache.org/jira/browse/SSHD-1142
Project: MINA SSHD
Issue Type: Question
Reporter: Susmit Sarkar
Hello Lyor,
I want to use a preferred value while configuring sftp adapter for both cipher
and mac algos:
System.out.println(sshd.getMacFactories());
[[email protected], [email protected],
[email protected], hmac-sha2-256, hmac-sha2-512, hmac-sha1, hmac-md5,
hmac-sha1-96, hmac-md5-96]
Now if the customer wants a preferred value of *hmac-md5* how can I give it
priority compared to all other default ciphers?
sshd.setMacFactoriesNames(Arrays.asList("hmac-md5"));
This only sets to hmac-md5, but the list should contain all only the hmac-md5
will be in the priority order 1
*[ hmac-md5]*
[https://github.com/apache/mina-sshd/blob/master/docs/server-setup.md#configuring-ciphers-macs-digest]
*One can configure other security components using built-in factories the same
way. It is important to remember though that the order of the factories is
important as it affects the key exchange phase where the client and server
decide what options to use out of each peer's reported preferences.*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]