Java 安全 InvalidKeyException ODL Netconf TestTool

标签 java opendaylight

我已将 ODL Netconf 测试工具 (netconf-testtool-1.1.0-Boron-executable.jar) 部署到我的 Nitrogen ODL Controller 上,以便开始 Netconf 测试。

当我通过 java -Xmx1G -jar netconf-testtool-1.1.0-Boron-executable.jar 启动 Netconf TestTool 时,我得到以下似乎正确的输出。

root@Ubuntu:~# java -Xmx1G -jar netconf-testtool-1.1.0-Boron-executable.jar

 - 16:56:29.985 [main] INFO  o.o.n.t.tool.NetconfDeviceSimulator - Starting 1, SSH simulated devices starting on port 17830
 - 16:56:31.336 [main] INFO  o.a.sshd.common.util.SecurityUtils - Trying to register BouncyCastle as a JCE provider
 - 16:56:32.381 [main] INFO  o.a.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider
 - 16:56:32.683 [main] INFO  o.o.n.t.tool.NetconfDeviceSimulator - All simulated devices started successfully from port 17830 to 17830

然后,我继续通过 REST 在 ODL Controller 上为 Netconf TestTool 添加 Netconf 连接器,该操作成功并报告“连接”状态。

"node-id": "Netconf-Testtool",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:connection-status": "connecting",
"netconf-node-topology:port": 17830

但是当我回顾 ODL TestTool 时,我看到以下 JAVA 错误

java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size

有人见过这个吗?

最佳答案

我在使用 Carbon (1.2.3-SNAPSHOT) 的 netconf-test-tool 和 Controller ODL Boron SR3 时遇到了同样的事情。

我发现原因是我的虚拟机正在使用运行该工具的 JDK 8 u161,并且看起来 u151 中发生了更改,更改了默认 key 大小。 http://www.oracle.com/technetwork/java/javase/8u151-relnotes-3850493.html

我按照 Stephen 的建议从 nexus 中提取了 netconf-testtool-1.3.2-executable.jar 工件,问题已经消失,我可以安装模拟器了。

测试工具 1.3.x 版本上的 SSH 相关依赖项可能已使用较新版本的 JDK 进行了更新。

关于Java 安全 InvalidKeyException ODL Netconf TestTool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48911525/

相关文章:

java - Java 中的多线程音频

java - FTP 下载的图像显示不正确

java - 对数组列表进行排序时出现问题

ubuntu - 在 ubuntu 18.04 LTS 上安装 opendaylight fluorine 时出现问题

Opendaylight:获取有关流量缺失事件的通知

java : how to handle the design when template methods throw exception when overrided method not throw

opendaylight - 在哪里可以找到使用 opendaylight 解析 YANG 文件的示例

java - 如何在 opendaylight Controller 中编写 java 模块

python - 通过 Mininet python API 设置的带宽不会反射(reflect)在 Opendaylight 中

java - HTTP Builder/Groovy - 获取源文本_和_ XmlSlurper 输出?