简体   繁体   English

JMeter - 在 bin 目录中找不到根证书

[英]JMeter - No root certificate found in bin directory

I am trying to record a Script using Jmeter recorder.我正在尝试使用 Jmeter 记录器记录脚本。 For this I tried to import root certificate from the bin folder in Firefox.为此,我尝试从 Firefox 的 bin 文件夹中导入根证书。 But I can't see a certificate there.但是我在那里看不到证书。 I also tried to download sample JMeter certificate from GitHub and installed it.我还尝试从 GitHub 下载示例 JMeter 证书并安装它。 But Firefox rejected it saying that I do not have the corresponding private key.但是 Firefox 拒绝了它,说我没有相应的私钥。

Could anyone please tell why is my certificate missing?谁能告诉我为什么我的证书不见了? Also it would be helpful if someone could tell me how to generate the certificate in Jmeter.如果有人能告诉我如何在 Jmeter 中生成证书,这也会很有帮助。

My Java version is "1.8.0_251" JMeter version - 5.3我的 Java 版本是“1.8.0_251”JMeter 版本 - 5.3

The certificate is being generated under "bin" folder of your JMeter installation when you start HTTP(S) Test Script Recorder , to wit when you click "Start" button:当您启动HTTP(S) Test Script Recorder 时,将在 JMeter 安装的“bin”文件夹下生成证书,即当您单击“开始”按钮时:

在此处输入图片说明

Before that you will not see any certificate.在此之前,您将看不到任何证书。

The certificate file is ApacheJMeterTemporaryRootCA.crt and it will appear assuming your properly installed Java and this guy can be installed into Firefox browser ("Authorities" tab of the Firefox Certificate Manager)证书文件是ApacheJMeterTemporaryRootCA.crt并且它会出现假设你正确安装了 Java 并且这个家伙可以安装到 Firefox 浏览器中(Firefox 证书管理器的“权限”选项卡)

Don't download any certificates from Internet and if you did - don't install them as you're putting yourself under the risk of MITM attack , use only the certificate your very own JMeter generated不要从 Internet 下载任何证书,如果下载了 - 不要安装它们,因为您将自己置于MITM 攻击的风险之下,使用您自己的 JMeter 生成的证书

Also be aware that there is an alternative (easier?) way of recording a JMeter test: JMeter Chrome Extension , in this case you won't have to worry about proxies and SSL certificates.另请注意,还有另一种(更简单?)记录 JMeter 测试的方法: JMeter Chrome Extension ,在这种情况下,您不必担心代理和 SSL 证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM