[
https://issues.apache.org/jira/browse/SSHD-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16113134#comment-16113134
]
Goldstein Lyor commented on SSHD-759:
-------------------------------------
Great - BTW, you can use *any* other 3rd party library you like to load the
{{KeyPair}}-s - at least until SSHD 1.7 is released. While on this subject, is
there some reason it must be a PKCS#8 formatted PEM file ? To best of my
knowledge only this format is buggy in 1.6 - if you use files generated by
{{ssh-keygen}} you should have no problem.
> Should not overwrite existing ssh key if the algorithm does not match
> ---------------------------------------------------------------------
>
> Key: SSHD-759
> URL: https://issues.apache.org/jira/browse/SSHD-759
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Christian Schneider
>
> Currently a key file that does not have the correct algorithm is simply
> deleted.
> I think this is not a good behaviour as the user might have created the key
> explicitly.
> https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/keyprovider/AbstractGeneratorHostKeyProvider.java#L238-L244
> I propose we simply throw an exception if the algorithm does not match. Then
> the user can decide if he wants to delete the file or change the algorithm.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)