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?
-
https://youtu.be/bTEtE9oyZzA?t=256 A bit hacky but worked for me. When using the JMeter HTTPS recorder test meter automatically generates the ca cert – im_bhatman Jun 16 '21 at 05:31
8 Answers
I solved it by removing ApacheJMeterTemporaryRootCA.crt
, ApacheJMeterTemporaryRootCA.usr
and proxyserver.jks
from the bin directory of JMeter.

- 10,906
- 9
- 64
- 105
-
1Only this worked for me, I had already deleted the certificates, I had also to delete `proxyserver.jks`. – tokland Apr 17 '18 at 11:55
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:

- 33,980
- 5
- 71
- 116
-
Thanks! I had the JDK, just the wrong path in the jmeter.sh file. I'd up vote your answer, but I am such a newbie that I can't. – QualiT Jan 13 '14 at 15:56
-
You need to have at least 15 points, which seems you have no. At least you should accept answer so that it's helpful to others. – UBIK LOAD PACK Jan 14 '14 at 14:31
Need to remove proxyserver.jks
to create new certificate if you have removed ApacheJMeterTemporaryRootCA.crt
, ApacheJMeterTemporaryRootCA.usr
from bin . I did same too and got the certificate.

- 1,580
- 4
- 26
- 50

- 29
- 1
-
Thank you, yes if you delete the certificate also be sure to delete proxyserver.jks – A-Makeyev Nov 08 '20 at 13:53
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

- 648
- 1
- 8
- 13
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

- 160
- 1
- 6
-
On Windows 7, had the same issue here and got it fix by just coping the key tool.exe into the Jmeter bin directory – Tom Tang Aug 08 '19 at 03:20
I had a similar issue please follow below steps,
1.Reinstall java, update the environment variables JAVA_HOME
2.Check the java version and make sure you don't get anything extra other than C:>java -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode) in case if you find anything addition , remove them from environment variables.
5.Run Jmeter , you should be getting root certification
don't go complex solution lets try it easily
- check your jdk version java -version> if version is less then jdk6 then update you jdk 2.download the missing file (gist.github.com/9ef114c53b83e553b635.git) 3 and add it however you know
In my case,
I extracted JMeter in C: drive (Windows 10 program files folder).
Running JMeter.bat as Administrator solved that issue for me.
Otherwise extracting in other drives also help.

- 1
- 1