I am trying to record a Script using Jmeter recorder. For this I tried to import root certificate from the bin folder in Firefox. But I can't see a certificate there. I also tried to download sample JMeter certificate from GitHub and installed it. But Firefox rejected it saying that I do not have the corresponding private key.
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.
My Java version is "1.8.0_251" JMeter version - 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:
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)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
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.