Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84DB0CF79 for ; Wed, 10 Dec 2014 13:36:14 +0000 (UTC) Received: (qmail 25799 invoked by uid 500); 10 Dec 2014 13:36:12 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 25708 invoked by uid 500); 10 Dec 2014 13:36:12 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 25696 invoked by uid 99); 10 Dec 2014 13:36:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 13:36:12 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [212.82.97.39] (HELO nm25-vm6.bullet.mail.ir2.yahoo.com) (212.82.97.39) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 13:35:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1418218459; bh=VwZIxvJztT13h0ZM0OahH2tJRBv+Nwwh0cCOvzgAHUs=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=SkSPLOxRwLBdNWid3qyKT/zH7mgPk3R0W65ezQSnBFtHZWHKxQglI5hPVp6UZ/ODM+TDAWQPKkvTJbfqbCzezMqaZlHNCRqZS9vlHYtNCNjVmdK4q2L2ij23H3ipwkplGd+YV9U8qU3qnmVaW34aJQ43jqx6g8OEV+LZoIQG7cP3KaveYV7g5rlcbLnk8Fi28oXxOir+Vkby3M9QFRegihDVIm0JARfjQMuc0/hjD/QrR8+Rag8pEGSiD1yuIxK9s/AzYfBwWReUaTFTeXGIizF1yjZ2YY7Y+/rjBD0oOKzKkkaQZIx5CGxa8DD3BPi6ndtem9+dq3tRKj9hZLQTeg== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.de; b=aGfbpJaXKiWjlejRIar6qJvxtA5x5nXC1jpXcrCZU8+0WInpQn9cqg8ImPYpR8opeoHSWGVcM376sUFa4G3b4vrdjrA/PEFCEfKPQAZfP2NhKdZU4YItertRjSHttexqhPZ4blansi2lKnnE6wtDpV+CevhZM681uI2WBfiZN9vUB4TaNbTjQ/6d8mydiHbDxxm0K8v+MJGuymhfHMorh16+KLiJb/s4lYVfGzd97rL+/v3OLtemR40BSaXNLH1844loqXty7wUGTE0Ed2JC0ULSuhaNPVIAD3g/m4XffwfBcGYHsMZjQzfic2E8wh4nj68k1R3HjtxNcFpzXUgJ2g==; Received: from [212.82.98.52] by nm25.bullet.mail.ir2.yahoo.com with NNFMP; 10 Dec 2014 13:34:19 -0000 Received: from [212.82.98.94] by tm5.bullet.mail.ir2.yahoo.com with NNFMP; 10 Dec 2014 13:34:14 -0000 Received: from [127.0.0.1] by omp1031.mail.ir2.yahoo.com with NNFMP; 10 Dec 2014 13:34:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 166047.89672.bm@omp1031.mail.ir2.yahoo.com X-YMail-OSG: MxNMXcYVM1nZslsGEJtYgz5KUobxtQkCi9GkmjZoGMv2pznPL1f_ftH2sAq_Auv gqfymd_4T66_XLbECEGpMrLSeV8diiBt6L71LDQnuH.u0isGgUlnVgA5vqxwV_Bvs2bp4rEpfhM9 17qRTOjlouONJVS1E7aim6_XsdOUkJ7daBW3BqRGhEm7D2LQJ1Odg1IgwVv7m583eaLk914oOoxh a3fe.o0dfbBkg9h9msmHpKZyKVoVg9mOgTY.ymxGUlLYrrjZ05fTpOITx9QcJQuQ0Owia13DU48G CVERJF5L0WhVwaYVVP1.oHFADDbkU8OnLV04hck_.mFowsc8C6vddb_fT8PVNB9HIvKSjkRayCdq YaQA64K8t9cHBoKYgG93AJlGPTcg.ziBqPEUDLG.EfsLa0JECyal6wKKW6Vb7Eu0XTYOxKUKhYrT chqfFh6xT2vCc2wD6rG94i6n02OxQwG4.XovCXekndKLyrZh9mBTB6RfHVETXIvcLrXZbQErfbjC dtCxolFrAr3k- Received: by 212.82.98.122; Wed, 10 Dec 2014 13:34:13 +0000 Date: Wed, 10 Dec 2014 13:34:13 +0000 (UTC) From: George Reply-To: George To: JMeter Users List , George Message-ID: <1744852393.8280356.1418218453056.JavaMail.yahoo@jws11130.mail.ir2.yahoo.com> In-Reply-To: <1192178338.3348970.1418210901445.JavaMail.yahoo@jws11140.mail.ir2.yahoo.com> References: <1192178338.3348970.1418210901445.JavaMail.yahoo@jws11140.mail.ir2.yahoo.com> Subject: Re: KeyStore Configuration loops for every http sampler? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8280355_7063628.1418218453052" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8280355_7063628.1418218453052 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, got it.I have to set the property "https.use.cached.ssl.context=true"Doing so i get a warning message in my logger panel that i have to set this value to "false" to use multiple client certs but i ignore it.So for me if i set this value to "true" everything works like a charm.If i set this value to "false" then for EVERY http sampler jmeter use the next cert from keystore. So if i set it to "true" i see this:jmeter.protocol.http.sampler.HTTPHC4Impl: Reusing the HttpClient: @id..... And the id is the same as for the first HttpClient.Thus if i have 10 http samplers the first one will be created with the [0] cert and all other 9 http samplers will simple "reuse" the httpclient and of course reuse the [0] cert or better say the ssl handshake is done only once (at the first request). George schrieb am 12:32 Mittwoch, 10.Dezember 2014: Hello, it seems that the Keystore Configuration loops through the index for every http sampler request?I have put jmeter into "debug" mode and also debug "ssl, keymanager". I see everything clear in the logger panel. So i have a Keystore (.jks) with 3 certs. cert1, cert2, cert3. My keystore configuration says "start: 0, end:2" preload: false".Then i have ---> Thread running 1 rampup 1 and just run 1------>Cookie Manager -------->Simple controler------------->Http Sampler targeting my server on via https and do a simple GET------------->Http Sampler targeting the same server via https doing a GET/path/blah When i run my test then i see this for the first http sampler:jmeter.protocol.http.sampler.HTTPHC4Impl: Created new HttpClient: @instance_idjmeter.util.SSLManager: Total of 3 aliases loaded OK from keystore Perfect so far. Then i see:jmeter.util.JsseSSLManager: Using threadLocal SSL context for :thread1 1-1jmeter.util.JsseManager: Client alias:'cert1' So far good.Then the http sampler request is made and i see the response and i see that i get a cookie back. Perfect.But now i see:jmeter.util.JsseSSLManager: Clearing session context for current thread And then i see that the next http sampler is triggered to be executed i see:jmeter.protocol.http.sampler.HTTPHC4Impl: Created new HttpClient: @instance_id_for_next_sampler And i also see again:jmeter.util.JsseSSLManager: Using threadLocal SSL context for :thread1 1-1 And now i see:jmeter.util.JsseManager: Client alias:'cert2' WHY that?I mean i have one thread with 2 http sampler request.I don't want that jmeter "loops" through my certs [0-2] for every http sampler.I want to have 1 thread with 10 http samplers targeting the same server via https and i want that all sent "cert1". But now i see clearly that the ssl session context will be opend and closed for every http sampler.This mean that for first http sampler jmeter use cert from position [0] from my keystore configuration and for the next http request it use postion [1].? BrGeorge ------=_Part_8280355_7063628.1418218453052--