jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Kenworthy <Stuart.Kenwor...@bjss.com>
Subject Re: Single SSL Certificate per Thread
Date Fri, 01 Sep 2017 19:51:21 GMT
Alias. Sorry just don't think I said alias enough in my last response. Alias

On 1 Sep 2017 20:49, stuart.kenworthy@bjss.com wrote:
Have you tried using a keystores manager and constructing the alias using variables and is
or even having the key alias match the thread name and just using thread name as alias in
keystores manager alias?

On 1 Sep 2017 20:29, Adam Brown <gator2003@gmail.com> wrote:
Hi all,

I have a keystore configuration where JMeter loops through 9,999 certificates in a JKS to
send HTTP Requests to the server. Currently, JMeter uses a different certificate from the
keystore for each request. I want each thread to only use one certificate for all of the requests
in the loop. I searched and didn't see anything specific on here or anywhere.

What I want to happen (simplified):

Thread 1-1 uses the test1 certificate to load /home
Thread 1-2 uses the test2 certificate to load /home
Thread 1-1 uses the test1 certificate to load /faq
Thread 1-2 uses the test2 certificate to load /faq
Thread 1-1 uses the test1 certificate to load /account
Thread 1-2 uses the test2 certificate to load /account

What's happening now is:

Thread 1-1 uses the test1 certificate to load /home
Thread 1-2 uses the test2 certificate to load /home
Thread 1-1 uses the test3 certificate to load /faq
Thread 1-2 uses the test4 certificate to load /faq
Thread 1-1 uses the test5 certificate to load /account
Thread 1-2 uses the test6 certificate to load /account

Also, for clarification, my HTTP Cache Manager and HTTP Cookie Manager is set to clear the
cache/cookies on each iteration. Does that mean, for example, that the cache will remain for
all requests on thread 1-1 and a separate cache for 2-2? When the user loads /home, they are
redirected and the certificate is read, automatically logging them in and sending them to
the real home page. I don’t want JMeter threads to have to log in, except for the the first
URL in the thread.

The only HTTP Request in uses a variable ${test_url} from a CSV Config to try about 20 URLs
in total. Another CSV Config puts the current certificate alias in ${cert_name}. https.use.cached.ssl.context
is set to false.

Thanks for any help!




The information included in this email and any files transmitted with it may contain information
that is confidential and it must not be used by, or its contents or attachments copied or
disclosed to, persons other than the intended addressee. If you have received this email in
error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant
standard terms of contract for any work to be undertaken will apply. Please carry out virus
or such other checks as you consider appropriate in respect of this email. BJSS does not accept
responsibility for any adverse effect upon your system or data in relation to this email or
any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company
Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor,
Coronet House, Queen Street, Leeds, LS1 2TW.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message