https://issues.apache.org/bugzilla/show_bug.cgi?id=56057

Michael Aichlmayr <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #17 from Michael Aichlmayr <[email protected]> ---
On the original issue, I had found that the work-around to the problems I was
having was:
 1. set the expiry to 10 years in the future,
 2. set my current directory to the JMeter bin directory,
 3. ensure the ApacheJMeterTemporaryRootCA.crt,
ApacheJMeterTemporaryRootCA.usr,
    and proxyserver.jks files are removed,
 4. start JMeter and create a Thread Group,
 5. Create an HTTP(S) Test Script Recorder inside the Thread Group,
 6. Start the recorder,

At this point the above three files are created, I can install the certificate
in the browser which is good for 10 years, and I can then perform recording
operations starting JMeter in my project folders that are not stored in the
JMeter bin directory.

Unfortunately, this also led to my forgetting to come back to this issue
(apologies) until I returned to see if anyone else had reported an unrelated
issue. For my unrelated issue I had installed a fresh JMeter 2.11 with no
plugins. Since I have this fresh install, I decided I should use it to follow
up on this issue before creating another.

Conditions:
1. fresh JMeter installation,
2. environment variable $JMETER_HOME set to location of installation,
3. $JMETER_HOME/bin is on the path,
4. the files ApacheJMeterTemporaryRootCA.crt, ApacheJMeterTemporaryRootCA.usr,
   and proxyserver.jks do not exist in the installation of JMeter,
5. there is a project folder outside $JMETER_HOME/bin

First Procedure:
1. start JMeter from the project folder,
2. create a new Thread Group,
3. create an HTTP(S) Test Script Recorder inside the Thread Group,
4. Start the recorder.

First Procedure Result:
Two files are created in $JMETER_HOME/bin and an error is produced.

The files created are: ApacheJMeterTemporaryRootCA.crt and proxyserver.jks.

The error (pop up message) is: "Could not create script recording proxy - see
log for details: Source 'ApacheJMeterTemporaryRootCA.crt' does not exist"

Upon clicking OK, no other files are created and the recorder is not started.

The following error is recorded in the log file:

2014/09/04 08:50:09 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not
initialise key store java.io.FileNotFoundException: Source
'ApacheJMeterTemporaryRootCA.crt' does not exist
    at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1074)
    at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)
    at
org.apache.jorphan.exec.KeyToolUtils.generateProxyCA(KeyToolUtils.java:250)
    at
org.apache.jmeter.protocol.http.proxy.ProxyControl.initDynamicKeyStore(ProxyControl.java:1281)
    at
org.apache.jmeter.protocol.http.proxy.ProxyControl.initKeyStore(ProxyControl.java:1208)
    at
org.apache.jmeter.protocol.http.proxy.ProxyControl.startProxy(ProxyControl.java:434)
    at
org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.startProxy(ProxyControlGui.java:485)
    at
org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.actionPerformed(ProxyControlGui.java:370)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$400(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Second Procedure:
1. remove the .crt, and .jks files from $JMETER_HOME/bin (.usr does not exist)
2. set current directory to $JMETER_HOME/bin
3. start JMeter,
4. create a new Thread Group,
5. create an HTTP(S) Test Script Recorder inside the Thread Group,
6. Start the recorder.

Second Procedure Result:
Three files are created in $JMETER_HOME/bin and NO error is produced.

The files created are: ApacheJMeterTemporaryRootCA.crt,
ApacheJMeterTemporaryRootCA.usr and proxyserver.jks.

The pop-up: "Root CA certificate: ApacheJMeterTemporaryRootCA created in JMeter
bin directory" with information about the certification, installing it, etc.
occurs.

When the certificate expires, I will perform further tests to see if the
certificate is replaced.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to