ApacheJMeterTemporaryRootCA.crt not generated

╄→гoц情女王★ 提交于 2020-01-10 19:20:28

问题


I am new to JMeter. I believe I have installed it successfully and I am running through the script recorder setup (http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf). When I start the JMeter proxy server which is used to intercept the browser requests a file called ApacheJMeterTemporaryRootCA.crt should be generated in jmeter/bin folder. It isn't. So, I cannot move on to Install the JMeter CA certificate for HTTPS recording, or for that matter configure my browser. Is there any known reason why the JMeter certificate would fail to be generated?


回答1:


You are probably using Java 6 , in this case no ApacheJMeterTemporaryRootCA is generated.

To know if you are using Java 7: - If HTTPS Domains is read only you are in JDK6 - If HTTPS Domains is writable you are using JDK7

Ensure you follow this:

  • https://wiki.apache.org/jmeter/TestRecording210

  • http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder




回答2:


I solved it by removing ApacheJMeterTemporaryRootCA.crt, ApacheJMeterTemporaryRootCA.usr and proxyserver.jks from the bin directory of JMeter.

https://mail-archives.apache.org/mod_mbox/jmeter-issues/201401.mbox/%3Cbug-56057-58895@https.issues.apache.org/bugzilla/%3E




回答3:


I was having the same issue - the root certificate was not found under the jmeter/bin directory. It was created in this path

C:\VTRoot\HarddiskVolume3\Users{UserName}\Downloads\apache-jmeter-2.12\bin

I had to import it to firefox

Windows 7 Professional - 64 bit Java 7 - 64 bit Jmeter Version 2.12




回答4:


We had the same problem. It appeared that the keytool.exe file that was being called by JMeter to generate the certificate, was located in a directory that had no write access. Initially the certificate is generated relatively to the location of keytool.exe (which is in java/bin), and then it is moved into the jmeter/bin directory.

We were able to fix it by copying the java installation directory into de jmeter directory and set write access. Then start JMeter with java pointing to the copied version.

Don't forget to remove proxyserver.jks before you try again



来源:https://stackoverflow.com/questions/21053346/apachejmetertemporaryrootca-crt-not-generated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!