Hi Team, When I try to record HTTPS based site which have IP rather DNS and I could see the log from jmeter as below. java.io.IOException: >> keytool error: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter << Command failed, code: 1 'keytool -genkeypair -alias 10.32.120.143 -dname "cn=10.32.120.143, o=JMeter Proxy (TEMPORARY TRUST ONLY)" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext san=dns:10.32.120.143' 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]
I have used different version of jdk and I'm getting the same result.
Date: Sat Nov 24 15:40:02 2018 Thanks for the report. It should be fixed in trunk and released with the next version (probably 5.1). Could you please test the next nightly? New Revision: 1847368 URL: http://svn.apache.org/viewvc?rev=1847368&view=rev Log: Use different cn and type of SAN extension when we are generating certificates based on IP addresses. Bugzilla Id: 62940 Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java jmeter/trunk/test/src/org/apache/jorphan/exec/TestKeyToolUtils.java jmeter/trunk/xdocs/changes.xml
I've used revision - r1847369 and this fixed the keytool issue. Thanks, Gnana sekar
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4929