Java JMeter CA证书问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21003639/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
JMeter CA certificate issue
提问by user3174568
I installed the JMeter version 2.11. When I add Http(s) test Script Recorder under Work Bench and try to record by clicking start I get an error message. That message is:
我安装了 JMeter 2.11 版。当我在 Work Bench 下添加 Http(s) 测试脚本记录器并尝试通过单击开始进行记录时,我收到一条错误消息。该消息是:
Root CA Certificate : Apache jmeter TemporaryRootCA created in Jmeter bin
directory.
I installed the certificate but still I am getting pop up "see installing the JMeter certificate for HTTPS recording pop up. and I am unable to fix this issue. Could you please suggest me how to fix this issue
我安装了证书,但仍然弹出“请参阅安装用于 HTTPS 录制的 JMeter 证书弹出窗口。我无法解决此问题。请您建议我如何解决此问题
回答by Phu
I got the same you, I worked following pdf, it works ok http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
我和你一样,我按照 pdf 工作,它工作正常 http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
回答by Viji
Please find the message below. even after adding certificates in Firefox I am getting this. Internet in my company connects using proxy. I launched jmeter
using cmd prompt by giving jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost
, Have set firefox proxy as local 8080
, but application is not working. Tried giving same proxy for firefox as well, applciation is working but its not getting recorded in jmeter. have followed steps given in "http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf"
请找到下面的消息。即使在 Firefox 中添加证书后,我也得到了这个。我公司的互联网使用代理连接。我jmeter
通过给出使用 cmd 提示符 启动jmeter -H my.proxy.server -P 8000 -u username -a password -N localhost
,已将 firefox 代理设置为local 8080
,但应用程序无法正常工作。也尝试为 firefox 提供相同的代理,applciation 正在运行,但它没有被记录在 jmeter 中。遵循“ http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf”中给出的步骤
Root CA certificate: ApacheJMeterTemporaryRootCA created in Jmeter bin directory You can install it following instruction in component Reference documentation (see Installing Jmeter CA certificate for HTTPS recording paragraph) Please check the details below when installing the certificate in the browser
根CA证书:在Jmeter bin目录下创建的ApacheJMeterTemporaryRootCA 可以按照组件参考文档中的说明进行安装(参见安装Jmeter CA证书进行HTTPS录制段落)在浏览器中安装证书时请查看下面的详细信息
CN=_DO NOT INSTALL unless this is your certificate(Jmeter root CA), OU =USername:M1007788,C=US figerprint(sHA1):d4 ed 5a e9 85 cc ad 83 36 61 68 bf 5d 772f 6c 29 19 05 created: Mon Apr 21 11:05:02 IST 2014
CN=_请勿安装,除非这是您的证书(Jmeter 根 CA),OU =用户名:M1007788,C=US 指纹(sHA1):d4 ed 5a e9 85 cc ad 83 36 61 68 bf 5d 772f 6c 29:19 05 created 2014 年 4 月 21 日星期一 11:05:02 IST
回答by user5653362
There is a file called proxycert.cmd in the extras folder in Jmeter. Import that as a certificate in the browser and it will work
Jmeter 的 extras 文件夹中有一个名为 proxycert.cmd 的文件。将其作为证书导入浏览器,它将起作用
回答by Dhruv Bhatnagar
Do the following and you'll be through:
执行以下操作,您将通过:
Installing the certificate in Firefox Choose the following options:
在 Firefox 中安装证书选择以下选项:
?Tools / Options
?工具/选项
?Advanced / Certificates
?高级/证书
?View Certificates
?查看证书
?Authorities
?当局
?Import ...
?进口 ...
?Browse to the JMeter launch directory, and click on the file ApacheJMeterTemporaryRootCA.crt , press Open
?浏览到 JMeter 启动目录,然后单击文件 ApacheJMeterTemporaryRootCA.crt ,按 Open
?Click View and check that the certificate details agree with the ones displayed by the JMeter Test Script Recorder
?单击查看并检查证书详细信息是否与 JMeter 测试脚本记录器显示的内容一致
?If OK, select "Trust this CA to identify web sites", and press OK
?如果OK,选择“Trust this CA to identify web sites”,然后按OK
?Close dialogs by pressing OK as necessary
? 根据需要按 OK 关闭对话框