jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Frank ...@mpexnet.de>
Subject Re: Testing WebService(SOAP) Request in HTTPS protocol
Date Wed, 19 Jan 2011 08:24:38 GMT


On 01/19/2011 05:57 AM, Ali Navab wrote:
> Hi All,
> I've recently installed JMeter for Load and Performance Test of a
> WebApplication and a WebService. every thing is ok and help embedded but a
> qustion:
> 
> When i want to test my webService using "WebService(SOAP) Request", i can
> not solve the error.
> my webserver is "apache-tomcat-6.0.26" and the address of webservice is:
> https://localhost:8443/.../../Re..WebServiceImpl?WSDL<https://localhost:8443/Re..WebServiceImpl?WSDL>
> 
> Because of the https protocol, i gave the key to JMeter using Option>SSL
> Manager
> but it still return ssl error (i think!)
> The exact error is :
> Response message: Error opening socket: javax.net.ssl.
> SSLHandshakeException: sun.security.validator.
> ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target

You "gave the key" to Jmeter? Could you be more specific?

Does your server use a self-signed certificate? If so, you need to add
the *certificate*, preferably to your java installation.

Assuming you have the certificate in tomcat.cer, do something along the
lines of
$ keytool -import -alias tomcatselfsigned -keystore
$JAVAHOME/jre/lib/security/cacerts -trustcacerts -file tomcat.cer

Then all Java applications should handshake with your Tomcat without
problems.

The certificate may currently be "hidden" in Tomcat's own keystore, you
may want to "keytool -exportcert" it first or alternatively import the
whole Tomcat keystore to the global Java keystore.

HTH,
Felix

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


Mime
View raw message