Jmeter proxy server error "Illegal option: -ext"
certificate, jmeter, proxy
Solution
I just ran in to this error when starting a recorder and generating a certificate. The problem turned out to be that Jmeter was using a Java 6 keytool instead of Java 7. I solved it by editing the startup script (jmeter.sh) and adding a java 7 installation path to the beginning of $PATH.
Problem
I am trying to use Jmeter to test my company's website. I was using Jmeter 2.9 and Firefox, and it was working fine. However, some parts of the website must be tested with Chrome, so I switched. For some reason, Jmeter 2.9 does not record interactions with my company's website, so I decided to upgrade to 2.11. I created an HTTP(S) Test Script Recorder and changed Chrome's proxy settings to fit. When I tried to start the Proxy server, 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 the `Illegal option: -ext` and nothing turns up. I typed `keytool -help` into a command line (I'm on Ubuntu) and didn't get back anything that seemed helpful. I could use any help you've got.