Jmeter proxy error "Invalid option: -ext"

I am trying to use Jmeter to test my website. I used Jmeter 2.9 and Firefox, and it worked fine. However, some parts of the website must be tested using Chrome, so I switched. For some reason, Jmeter 2.9 does not record interactions with the site of my company, so I decided to switch to 2.11.

I created a test protocol HTTP (S) Script and changed the settings of the Chrome proxy server to match it. When I tried to start the proxy, I got this error:

Could not create script recording proxy-see log for details: Command:'keytool -genkeypair -alias: root_ca: -dname "CN=_DO_NOT_INSTALL unless this is your certificate (JMeter root CA), OU=Username: <MY_USERNAME>, C=US" -keyalg RSA -keystore proxyserer.jks -storepass {redacted) -keypass {redacted) -validity 7 -ext bc:c' failed, code:1
Illegal option: -ext
Try keytool -help

I tried googling Illegal option: -extand nothing worked. I typed keytool -helpon the command line (I'm on Ubuntu) and didn't get anything useful.

I could use any help you received.

+4
source share
4 answers

I just ran into this error when starting the recorder and creating a certificate. The problem turned out to be that Jmeter used Java 6 keytool instead of Java 7. I solved it by editing the start script (jmeter.sh) and adding the java 7 installation path to the top of $ PATH.

+5
source

I had the same error when I upgraded from 2.9 to 2.11
Make sure you start JMeter with the JMeter script (.sh for Mac / Unix and .bat for Windows). This worked for me (from 2.9 I could click on the .jar file, but it does not work on 2.11 - at least on mac).

If this does not work, have any changes been made to your version of Java?

+1

, - ... \apache-jmeter-2.13\bin\user.properties

proxy.cert.alias =

+1

( ) - HTTP Header Manager, User-Agent, ,

.. - Firefox 25

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0

- Chrome

Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36

Another option is the Google Chrome plugin , which allows you to record a JMeter script directly from the Google Chrome browser without worrying about proxies and SSL certificates. It also records the correct user agent for your current Chrome browser along with other browser headers such as Accept-Language.

-1
source

Source: https://habr.com/ru/post/1527397/


All Articles