You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Cyril SANTUNE <cy...@gmail.com> on 2013/10/03 14:11:55 UTC

SSL manager non GUI testing

Hi,

I try to use SSL manager with the GUI and everything work fine.

So I try to add this configuration in jmeter.properties

javax.net.ssl.keyStore=D:\\Home\\keystore.jks
javax.net.ssl.keyStorePassword=passwrd

But in this case, it doesn't work. There is these errors messages :
2013/10/03 14:02:15 INFO  - jmeter.util.SSLManager: KeyStore created OK
2013/10/03 14:02:15 WARN  - jmeter.util.SSLManager: Keystore file not
found, loading empty keystore


I add debug sampler. There is the same variables defined
javax.net.ssl.keyStore=D:\Home\keystore.jks
javax.net.ssl.keyStorePassword=passwrd

The only difference I saw is :
- with the GUI, the properties is in "system properties" part
- with the properties file the properties is in "jmeter properties" part.

I try to use "/" in my path. It change nothing.

Re: SSL manager non GUI testing

Posted by Cyril SANTUNE <cy...@gmail.com>.
I retry with jmeter 2.10 but nothing change.




On Wed, Oct 9, 2013 at 11:05 AM, Lokesh K Sharma <
lokesh.sharma@hqcc.sahara.co.in> wrote:

>
> Thanks and Best regards,
> Lokesh Kumar Sharma
> Sahara India
> M: 8418828127
> Email: lokesh.sharma@hqcc.sahara.co.**in <lo...@hqcc.sahara.co.in>
> ----- Original Message ----- From: "Cyril SANTUNE" <
> cyril.santune@gmail.com>
> To: "JMeter Users List" <us...@jmeter.apache.org>
> Sent: Wednesday, October 09, 2013 2:19 PM
> Subject: Re: SSL manager non GUI testing
>
>
>
>  Relative path don't work.
>> As you suggested, I try to look with procmon, and I see that jmeter look
>> in
>> the file: <java_directory>\lib\security\**cacerts
>> It doesn't take the option into account.
>>
>> I redo the test in both case:
>> * I open the gui, "option"->"SSL Manager", I choose my jks file. Then I
>> start the test.
>>  - I saw my jks file access in procmon, the scenario work.
>> * I add the option in the jmeter.properties, I open the gui. Then I start
>> the test.
>>  - I saw only access to the cacerts file from java directory. My jks file
>> doesn't appear in procmon, so the scenario doesn't work.
>>
>> It is not GUI and no GUI problem, rather syntax problem with my properties
>> file I think.
>> I add this option too "javax.net.ssl.trustStore", it didn't help.
>> Maybe there is other options to set ?
>>
>>
>>
>>
>>
>> On Wed, Oct 9, 2013 at 8:10 AM, Shmuel Krakower <sh...@gmail.com>
>> wrote:
>>
>>  Try relative path.
>>>
>>> The other option you have is to download on your windows box the FileMon
>>> by
>>> Microsoft.
>>> This will allow you to see what path exactly the JMeter application is
>>> trying to open for this keystore and why it fails (permissions, not
>>> found,
>>> etc..)
>>>
>>> Shmuel Krakower.
>>> www.Beatsoo.org - re-use your jmeter scripts for application performance
>>> monitoring from worldwide locations for free.
>>>
>>>
>>> On Thu, Oct 3, 2013 at 3:11 PM, Cyril SANTUNE <cyril.santune@gmail.com
>>> >wrote:
>>>
>>> > Hi,
>>> >
>>> > I try to use SSL manager with the GUI and everything work fine.
>>> >
>>> > So I try to add this configuration in jmeter.properties
>>> >
>>> > javax.net.ssl.keyStore=D:\\**Home\\keystore.jks
>>> > javax.net.ssl.**keyStorePassword=passwrd
>>> >
>>> > But in this case, it doesn't work. There is these errors messages :
>>> > 2013/10/03 14:02:15 INFO  - jmeter.util.SSLManager: KeyStore created OK
>>> > 2013/10/03 14:02:15 WARN  - jmeter.util.SSLManager: Keystore file not
>>> > found, loading empty keystore
>>> >
>>> >
>>> > I add debug sampler. There is the same variables defined
>>> > javax.net.ssl.keyStore=D:\**Home\keystore.jks
>>> > javax.net.ssl.**keyStorePassword=passwrd
>>> >
>>> > The only difference I saw is :
>>> > - with the GUI, the properties is in "system properties" part
>>> > - with the properties file the properties is in "jmeter properties" >
>>> part.
>>> >
>>> > I try to use "/" in my path. It change nothing.
>>> >
>>>
>>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<us...@jmeter.apache.org>
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: SSL manager non GUI testing

Posted by Lokesh K Sharma <lo...@hqcc.sahara.co.in>.
Thanks and Best regards,
Lokesh Kumar Sharma
Sahara India
M: 8418828127
Email: lokesh.sharma@hqcc.sahara.co.in
----- Original Message ----- 
From: "Cyril SANTUNE" <cy...@gmail.com>
To: "JMeter Users List" <us...@jmeter.apache.org>
Sent: Wednesday, October 09, 2013 2:19 PM
Subject: Re: SSL manager non GUI testing


> Relative path don't work.
> As you suggested, I try to look with procmon, and I see that jmeter look 
> in
> the file: <java_directory>\lib\security\cacerts
> It doesn't take the option into account.
>
> I redo the test in both case:
> * I open the gui, "option"->"SSL Manager", I choose my jks file. Then I
> start the test.
>  - I saw my jks file access in procmon, the scenario work.
> * I add the option in the jmeter.properties, I open the gui. Then I start
> the test.
>  - I saw only access to the cacerts file from java directory. My jks file
> doesn't appear in procmon, so the scenario doesn't work.
>
> It is not GUI and no GUI problem, rather syntax problem with my properties
> file I think.
> I add this option too "javax.net.ssl.trustStore", it didn't help.
> Maybe there is other options to set ?
>
>
>
>
>
> On Wed, Oct 9, 2013 at 8:10 AM, Shmuel Krakower <sh...@gmail.com> 
> wrote:
>
>> Try relative path.
>>
>> The other option you have is to download on your windows box the FileMon 
>> by
>> Microsoft.
>> This will allow you to see what path exactly the JMeter application is
>> trying to open for this keystore and why it fails (permissions, not 
>> found,
>> etc..)
>>
>> Shmuel Krakower.
>> www.Beatsoo.org - re-use your jmeter scripts for application performance
>> monitoring from worldwide locations for free.
>>
>>
>> On Thu, Oct 3, 2013 at 3:11 PM, Cyril SANTUNE <cyril.santune@gmail.com
>> >wrote:
>>
>> > Hi,
>> >
>> > I try to use SSL manager with the GUI and everything work fine.
>> >
>> > So I try to add this configuration in jmeter.properties
>> >
>> > javax.net.ssl.keyStore=D:\\Home\\keystore.jks
>> > javax.net.ssl.keyStorePassword=passwrd
>> >
>> > But in this case, it doesn't work. There is these errors messages :
>> > 2013/10/03 14:02:15 INFO  - jmeter.util.SSLManager: KeyStore created OK
>> > 2013/10/03 14:02:15 WARN  - jmeter.util.SSLManager: Keystore file not
>> > found, loading empty keystore
>> >
>> >
>> > I add debug sampler. There is the same variables defined
>> > javax.net.ssl.keyStore=D:\Home\keystore.jks
>> > javax.net.ssl.keyStorePassword=passwrd
>> >
>> > The only difference I saw is :
>> > - with the GUI, the properties is in "system properties" part
>> > - with the properties file the properties is in "jmeter properties" 
>> > part.
>> >
>> > I try to use "/" in my path. It change nothing.
>> >
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: SSL manager non GUI testing

Posted by Cyril SANTUNE <cy...@gmail.com>.
Relative path don't work.
As you suggested, I try to look with procmon, and I see that jmeter look in
the file: <java_directory>\lib\security\cacerts
It doesn't take the option into account.

I redo the test in both case:
* I open the gui, "option"->"SSL Manager", I choose my jks file. Then I
start the test.
  - I saw my jks file access in procmon, the scenario work.
* I add the option in the jmeter.properties, I open the gui. Then I start
the test.
  - I saw only access to the cacerts file from java directory. My jks file
doesn't appear in procmon, so the scenario doesn't work.

It is not GUI and no GUI problem, rather syntax problem with my properties
file I think.
I add this option too "javax.net.ssl.trustStore", it didn't help.
Maybe there is other options to set ?





On Wed, Oct 9, 2013 at 8:10 AM, Shmuel Krakower <sh...@gmail.com> wrote:

> Try relative path.
>
> The other option you have is to download on your windows box the FileMon by
> Microsoft.
> This will allow you to see what path exactly the JMeter application is
> trying to open for this keystore and why it fails (permissions, not found,
> etc..)
>
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance
> monitoring from worldwide locations for free.
>
>
> On Thu, Oct 3, 2013 at 3:11 PM, Cyril SANTUNE <cyril.santune@gmail.com
> >wrote:
>
> > Hi,
> >
> > I try to use SSL manager with the GUI and everything work fine.
> >
> > So I try to add this configuration in jmeter.properties
> >
> > javax.net.ssl.keyStore=D:\\Home\\keystore.jks
> > javax.net.ssl.keyStorePassword=passwrd
> >
> > But in this case, it doesn't work. There is these errors messages :
> > 2013/10/03 14:02:15 INFO  - jmeter.util.SSLManager: KeyStore created OK
> > 2013/10/03 14:02:15 WARN  - jmeter.util.SSLManager: Keystore file not
> > found, loading empty keystore
> >
> >
> > I add debug sampler. There is the same variables defined
> > javax.net.ssl.keyStore=D:\Home\keystore.jks
> > javax.net.ssl.keyStorePassword=passwrd
> >
> > The only difference I saw is :
> > - with the GUI, the properties is in "system properties" part
> > - with the properties file the properties is in "jmeter properties" part.
> >
> > I try to use "/" in my path. It change nothing.
> >
>

Re: SSL manager non GUI testing

Posted by Shmuel Krakower <sh...@gmail.com>.
Try relative path.

The other option you have is to download on your windows box the FileMon by
Microsoft.
This will allow you to see what path exactly the JMeter application is
trying to open for this keystore and why it fails (permissions, not found,
etc..)

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.


On Thu, Oct 3, 2013 at 3:11 PM, Cyril SANTUNE <cy...@gmail.com>wrote:

> Hi,
>
> I try to use SSL manager with the GUI and everything work fine.
>
> So I try to add this configuration in jmeter.properties
>
> javax.net.ssl.keyStore=D:\\Home\\keystore.jks
> javax.net.ssl.keyStorePassword=passwrd
>
> But in this case, it doesn't work. There is these errors messages :
> 2013/10/03 14:02:15 INFO  - jmeter.util.SSLManager: KeyStore created OK
> 2013/10/03 14:02:15 WARN  - jmeter.util.SSLManager: Keystore file not
> found, loading empty keystore
>
>
> I add debug sampler. There is the same variables defined
> javax.net.ssl.keyStore=D:\Home\keystore.jks
> javax.net.ssl.keyStorePassword=passwrd
>
> The only difference I saw is :
> - with the GUI, the properties is in "system properties" part
> - with the properties file the properties is in "jmeter properties" part.
>
> I try to use "/" in my path. It change nothing.
>