英文:
Apache MINA SSHD java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
问题
我们正在使用Apache SSHD mina运行SFTP服务器。在Java 7下,一切正常运作。但是在Java 8下,当任何SFTP客户端尝试连接时,我们会收到以下异常。如何在服务器端使用Java 8修复此问题。客户端可以使用RSA或SHA算法。但是服务器必须处理两者,而不管密钥大小和类型。我正在使用SimpleGeneratorHostKeyProvider。
java.security.InvalidKeyException: SHA-1摘要算法的安全强度不足以适用于此密钥大小
at sun.security.provider.DSA.checkKey(DSA.java:110)
at sun.security.provider.DSA.engineInitSign(DSA.java:142)
英文:
We are running SFTP server using Apache SSHD mina. With Java 7 , everything works fine.
But with Java 8, we are getting the below exception when any SFTP client is trying to connect.
How to fix this issue in server side with Java 8. The client can use RSA or SHA algorithms.
But server has to handle both regardless of the key size and type. I am using SimpleGeneratorHostKeyProvider.
java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
at sun.security.provider.DSA.checkKey(DSA.java:110)
at sun.security.provider.DSA.engineInitSign(DSA.java:142)
专注分享java语言的经验与见解,让所有开发者获益!
评论