首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Java security InvalidKeyException ODL Netconf TestTool

Java security InvalidKeyException ODL Netconf TestTool
EN

Stack Overflow用户
提问于 2018-02-22 01:02:33
回答 1查看 224关注 0票数 1

我已经将ODL Netconf TestTool ( Netconf -testtool-1.1.0-Boron-executable.jar)部署到了我的氮气ODL控制器上,所以我开始测试Netconf。

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

代码语言:javascript
复制
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在上为Netconf TestTool添加一个Netconf-Connector,这是成功的,并且它报告了“连接”状态。

代码语言:javascript
复制
"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错误

代码语言:javascript
复制
java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size

以前有没有人见过这个?

EN

回答 1

Stack Overflow用户

发布于 2018-02-27 07:05:43

使用carbon (1.2.3-SNAPSHOT)的netconf-test-tool和ODL Boron SR3作为控制器,我也遇到了同样的情况。

我发现原因是我的VM使用的是运行该工具的JDK8 u161,并且看起来u151中有一个更改了默认的键大小。http://www.oracle.com/technetwork/java/javase/8u151-relnotes-3850493.html

按照Stephen的建议,我从netconf testtool-1.3.2-executable.jar中取出了netconf-testtool-1.3.2-executable.jar工件,问题已经解决了,我可以挂载模拟器了。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48911525

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档