0
votes

I am using Jmeter 5.4.1 with Java 1_8_301 and Firefox 91.0.
I have imported the ApacheJMeterTemporaryRootCA into Firefox browser and this certificate is generated today and valid.

I have set up proxy settings in my Firefox browser. This testing is done on Windows and my web application uses a client certificate which I converted through keytool into PKCS12 format and added the following to the system.properties under Jmeter-Home\bin

My web app is loading fine without proxy but when I try to record getting the below error.

java.net.SocketException: Software caused connection abort: recv failed **ensure browser is set to accept the JMeter proxy certificate**

I am not sure what I am missing here. I have been through all solutions mentioned in this regard and I am exhausted all my options now. I have been successful in recording using BlazeMeter but my company is not allowing me to use the Chrome extension for security reasons.

Note:

Also, I forgot to add that the Jmeter recording working fine before. Started noticing issues after our java is upgraded from jdk_1.8.291 to jdk_1.8.301. I checked the difference between the two and both support TLS1.2 which is what our app uses and tried to downgrade to v291 didn't work either.

Log:
Problem with SSL certificate for URL for 'XXXXX'? Ensure browser is set to accept the JMeter proxy cert: java.net.SocketException: Software caused connection abort: recv failed

1

1 Answers

0
votes

It's quite hard to say what's wrong without seeing your jmeter.log file with debug logging enabled for the HTTP(S) Test Script Recorder.

I can think of 2 options:

  1. Double check the way you're importing the certificate into your browser, i.e. try recording a website with HTTPS without client certificate, i.e. https://example.com. If it fails - you will need to properly install the JMeter's certificate prior to proceeding with your application recording

  2. If it will be successful for other HTTPS website but not for the particular your application most probably you need to import your client certificate into Firefox browser as well

As the last resort you can inspect the requests using Firefox "network" tab and generate relevant HTTP Request samplers manually. There is also BlazeMeter JMX Converter service which can transform HAR files into .JMX scripts but I think the same security restrictions will apply.