Here's some information that I managed to put together while stumbling
around in the dark. Maybe some other SSL-challenged folks out there
might find it useful. Any corrections or improvements from the
cognoscenti would be most welcome.
-Ayman Mobarak

----------------------------------------------------
This recipe works for:
IE 6.0
Sun j2sdk 1.4.1_01
JMeter 1.8

1.) Get Certificate from Server
(this bit works for my test target not sure what the story is for
real-world https sites)
* use IE to go to secure site
* you will get a security alert
* view certificate and note the issuer / issuee
* install the certificate in "Trusted Root Certification Authorities"

2.) Export Certificate to File
* IE Tools->Internet Options->Content->Certificates
  ->Trusted Root Certification Authorities
* locate the certificate in the table & select
* hit the Export button
* select DER encoded binary format x.509
* save to a file

3.) Import Certificate into JRE Keystore
* open command prompt
* make sure %JAVA_HOME%/jre/bin is in your path
* keytool-import -file <certificate filename>
* enter keystore password (default is "changeit")
* enter "yes" to trust the certificate

4.) Modify the jmeter.properties file
* uncomment the following lines: 
#ssl.provider=com.sun.net.ssl.internal.ssl.Provider
#ssl.pkgs=com.sun.net.ssl.internal.www.protocol

5.) Try It
* start JMeter
* Make a simple test case as follows
Test Plan
   Thread Group (Loop Count = 1)
      HTTP Cookie Manager
      HTTP Request (HTTPS, Port 443)
      View Results Tree
* HTTP responses will be logged in the results tree


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

Reply via email to