2
votes

I'm following step by step this tutorial to create the certificate ApacheJMeterTemporaryRootCA.crt.

However after I hit run nothing related to certificate is showing up, as if I was just running a simple test without recording. It's not even displaying error messages. I have read these threads but they are not helpful for my case:

Does any - Apache jMeter not generating ApacheJMeterTemporaryRootCA.crt for https recording - ApacheJMeterTemporaryRootCA.crt not generated

I am using Java 1.7.0,67, Jmeter 2.13 (both are newest versions). I have also followed this page to set up my environment variables

Does anyone has an idea about what is missing here? Thanks a million!!

3

3 Answers

5
votes

I had a problem where I'd deleted the certificate and struggled to get it to regenerate.

In the bin folder there is a keystore file called proxyserver.jks, when I deleted that the certificate regenerated on the next start of the test script recorder

1
votes

In the absolute majority of cases jmeter.log file contains all the answers or at least can help to figure out the cause of the problem.

If below checklist doesn't help - update your question with relevant bit of the JMeter log file.

  1. Use JDK, not JRE
  2. Make sure that you have the following environment variables set:

    • JAVA_HOME - pointing to JDK installation root
    • PATH - contains /bin folder of JAVA_HOME
  3. If you using web browser for recording make sure that

    • "HTTP Proxy" is set to correct JMeter host and port
    • "Use proxy for all protocols" box is checked
    • "No proxy for" input doesn't filter out JMeter host (you can clean it)

    Refer below image for example proxy settings for Firefox browser:

Firefox Proxy Settings

  1. The easiest way to set up JMeter for recording is using Recording Template (File -> Templates -> Recording), this way you can get JMeter configured for recording in a single click

If above checklist didn't resolve your problem check out Recording HTTPS Traffic with JMeter's Proxy Server guide for troubleshooting tips.

0
votes

Navigate to HTTP(S) Test Script Recorder, and click the Start button at the bottom.

http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

This will start the JMeter proxy server which is used to intercept the browser requests. A file called ApacheJMeterTemporaryRootCA.crt will be generated in jmeter/bin folder.

Possibly you run test instead of starting proxy server.