Hi, Craig, 

Thanks for your detailed instruction, and I tried to follow all your 
instruction as the following:

=====================================================
1. Copy the cert file to C:\. I named it erfx.cer
2. run the keytool
3. remember the password as mywebsite

C:\>keytool -import -keystore erfx -alias erfx -file c:\erfx.cer
Enter keystore password:  mywebsite
Trust this certificate? [no]:  yes
Certificate was added to keystore
===========================================
I thought I should succeed add the file to keystore, didn't I ? Am I picking up 
right? Since I rename the file and out under
(Java_home)\lib\security, and when I run the Jmeter, since got the error 
message for "key cannot find"...
so, where did I get wrong?

AL


-----Original Message-----
From: Craig Palmer [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 11:04 AM
To: JMeter Users List
Subject: RE: SSL problem


You need a security certificate to access that particular secure site.
This is part of the ssl layer in the JVM. The following are some
instructions to do this.

1. Go to your SECURE site which you are trying to access.
2. Click on the lock icon at the right corner(I am assuming you are
using IE).
3. Go to "Certification Path" tab and select the leaf node certificate
i.e. the bottom most in the hierarchy
4. Click on Details tab and click on "Copy to File..."
5. Select the default options for "Export to file format" dialog box.
6. On next page specify the .cer file name lets say xyz the file it will
generate would be xyz.cer.
7. Run the following keytool command to generate xyzcacerts.

 keytool -import -keystore xyzcacerts -alias xyz -file xyz.cer

8. To run application, provide javax.net.ssl.trustStore=./xyzcacerts as
a variable to jvm using java -Djavax.net......
 or set in the code by calling the System.setProperty(..) or
 rename the xyzcacerts to jssecacerts and put in
 (java.home)"c:\Program File\java\j2re1.4.2\lib\security"

where c:\Program File\java\j2re1.4.2\ is the location of your jre. I've
only tried the third strategy of generating the jssecacerts file.

Craig.

-----Original Message-----
From: Liao, Avian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 16, 2004 7:56 AM
To: Jmeter Info (E-mail); [EMAIL PROTECTED]
Subject: SSL problem

Hi, 

I tried to do load testing for our Https site, and in my log file, I saw
the following message:

=====================================================================
ERROR - jmeter.util.SSLManager: Couldn't load keystore
java.lang.Exception: No key found
        at
org.apache.jmeter.util.keystore.DefaultKeyStore.load(DefaultKeyStore.jav
a:73)
        at
org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:173)
        at
org.apache.jmeter.util.JsseSSLManager.getContext(JsseSSLManager.java:171
)
        at
org.apache.jmeter.util.JsseSSLManager.<init>(JsseSSLManager.java:99)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at
org.apache.jmeter.util.SSLManager.getInstance(SSLManager.java:281)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.setupConnection(HTTP
Sampler.java:148)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.j
ava:465)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:585)
        at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:573)
        at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
        at java.lang.Thread.run(Thread.java:536)

====================================================================

I question is :

1. Do I need to install anything in order for Jmeter to run my test?
2. what does " no key found" in the error message?
3. If I re-run this program again, there would be no error message, but
if I close the JMeter and run this xscript, the error would show again,
why does it mean?

Anyone get answer? Thanks!

AL

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to