title: Secure Webservice Client on Glassfish
body: <p>I have an secure external webservice at URL <a href="https://my-webservice-path?wsdl" rel="nofollow">https://my-webservice-path?wsdl</a>, and i want to connect to use this. This is a 2-way ssl.
  I create a webservice client in following:</p>
  
  <ol>
  <li>Create an java application Application1</li>
  <li>at Project window, click Application1 icon -> new -> Web service client</li>
  <li>paste my URL at WSDL URL, client type is JAX-WS, package: com.mypackage</li>
  <li>finish</li>
  </ol>
  
  <p>But an error appears: Error: An I/O error occured. Received fatal alert: handshake_failure</p>
  
  <p>And i can not create Web Service References. I use Glassfish 3.0.1 server.</p>
  
  <p>I tried to replace the alias s1as in keystore.jks and cacerts.jks of the Glassfish by my keypair and certificate, but it still fails. </p>
  
  <p>I also tried to use wsimport parsing wsdl file but fail:(</p>
  
  <p>I posted this question in Oracle Forum at <a href="http://forums.oracle.com/forums/thread.jspa?threadID=2214292&amp;tstart=0" rel="nofollow">http://forums.oracle.com/forums/thread.jspa?threadID=2214292&amp;tstart=0</a> but get no answer.
  i've tried to solve this for 2 days :(</p>
  
  <p>What can i do now to solve this problem?
  Plz help me, thank you!</p>