Hello All,

I am reposting here as I posted this in 
http://www.nabble.com/multiple-user-certs-in-single-jmeter-test--td11034523.html
JMeter-User  earlier today, but I feel it belongs to JMeter-Dev.

I would like to have each thread of a test use a different certificate from
a bunch of certificates stored in a single Java Keystore (JKS).

I've made changes to some of the classes in org.apache.jmeter.util (under
src/core) of Jmeter 2.3.4 r785646.  The changes are messy and quick fixes
for sure, but allow me to do what I suggested above.  If you have a keystore
with 1000 certificates, Jmeter will pick a different one for each thread in
a round-robin fashion starting from the first certificate.  If you have more
threads than certificates, Jmeter will restart from the beginning of the
keystore when the last certificate is reached.

My problem is that tests that ran fine before using the unmodified version
of Jmeter 2.3.4 r785646 now have a decent percentage of ConnectException
(578/86400) errors and a very small percentage of SocketException errors
(1/86400), EVEN when not using PKI at all.  The tests have about 1000 active
threads at any time.

SocketException:
rc="Non HTTP response code: java.net.SocketException" rm="Non HTTP response
message: Connection reset"

ConnectException:
rc="Non HTTP response code: java.net.ConnectException" rm="Non HTTP response
message: Connection timed out"

I've attached the files I've changed (at least I believe this is all of
them).  I was wondering if anyone has any idea what I am doing wrong,
considering I've given up on doing it myself after about a week of
debugging.

Thanks in advance,
-Ash

P.S. - My apologies for the repost.

P.P.S. - On second thought, I should have gave patches instead, but I've
already uploaded the files.  If you would like patches instead, please let
me know.

http://www.nabble.com/file/p25260933/JsseSSLManager.java JsseSSLManager.java 
http://www.nabble.com/file/p25260933/SSLManager.java SSLManager.java 
http://www.nabble.com/file/p25260933/JmeterKeyStore.java JmeterKeyStore.java 
http://www.nabble.com/file/p25260933/DefaultKeyStore.java
DefaultKeyStore.java 
-- 
View this message in context: 
http://www.nabble.com/implementing-use-of-multiple-certificates-on-a-per-thread-basis-tp25263354p25263354.html
Sent from the JMeter - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org

Reply via email to