为了账号安全,请及时绑定邮箱和手机立即绑定

jmeter工具报keytool 错误怎么改

/ 猿问

jmeter工具报keytool 错误怎么改

咸鱼终有翻身之日 2018-08-11 00:39:21

java.io.IOException:   >> keytool 错误: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter <<

Command failed, code: 1

'keytool -genkeypair -alias 140.205.218.23 -dname "cn=140.205.218.23, o=JMeter Proxy (TEMPORARY TRUST ONLY)" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext san=dns:140.205.218.23'

at org.apache.jorphan.exec.KeyToolUtils.genkeypair(KeyToolUtils.java:171) ~[jorphan.jar:4.0 r1823414]

at org.apache.jorphan.exec.KeyToolUtils.generateSignedCert(KeyToolUtils.java:285) ~[jorphan.jar:4.0 r1823414]

at org.apache.jorphan.exec.KeyToolUtils.generateHostCert(KeyToolUtils.java:276) ~[jorphan.jar:4.0 r1823414]

at org.apache.jmeter.protocol.http.proxy.ProxyControl.updateKeyStore(ProxyControl.java:1563) ~[ApacheJMeter_http.jar:4.0 r1823414]

at org.apache.jmeter.protocol.http.proxy.Proxy.getSSLSocketFactory(Proxy.java:324) [ApacheJMeter_http.jar:4.0 r1823414]

at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:429) [ApacheJMeter_http.jar:4.0 r1823414]

at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:4.0 r1823414]

2018-08-10 23:31:32,571 WARN o.a.j.p.h.p.Proxy: [50879]  Unable to negotiate SSL transaction, no keystore?

2018-08-10 23:31:32,571 ERROR o.a.j.p.h.p.Proxy: [50879] ?Exception when processing sample

java.io.IOException: Unable to negotiate SSL transaction, no keystore?

at org.apache.jmeter.protocol.http.proxy.Proxy.startSSL(Proxy.java:446) ~[ApacheJMeter_http.jar:4.0 r1823414]

at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:194) [ApacheJMeter_http.jar:4.0 r1823414]

2018-08-10 23:31:32,785 INFO o.a.j.p.h.p.ProxyControl: [50905] Creating entry 140.205.218.23 in E:\jm\apache-jmeter-4.0\bin\proxyserver.jks

2018-08-10 23:31:33,693 ERROR o.a.j.p.h.p.Proxy: [50905] ?Problem with keystore


查看完整描述

2 回答

?
精慕门6338357

将要测试的ip在hosts文件映射成域名,通过域名访问看下

查看完整回答
反对 2020-04-23
?
头头头头我好想你

兄弟,这个问题解决了吗?我也是报这个错

查看完整回答
反对 2018-09-28

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信