• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

SSLHandshakeException

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am trying to use ssl for my apache axis web services.when i am running the following code i am getting "javax.net.ssl.SSLHandshakeException"

import java.io.*;
import java.net.URL;
import java.io.InputStreamReader;


public class URLReader
{
public static void main(String[] args) throws Exception
{
if (args.length < 1)
{
System.err.println("Usage:: java URLReader <url>");
return;
}
System.out.println("Trying to read the url: " + args[0]);
URL url = new URL(args[0]);
try
{
InputStreamReader isr = new InputStreamReader(url.openStream());

char[] buf = new char[1024];
int nread;
while ((nread = isr.read(buf, 0, buf.length)) > 0)
System.out.print(new String(buf, 0, nread));
System.out.flush();
}catch(IOException e){ System.out.println("error"+e); };
}
}



will u plz solve it.

plz solve it and send u r reply to my personal id...

anand.pericherla@gmail.com
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your client application I am not observed below Issue.

Made hand shake with your trusted Key store, Once it successful then server is accepted your request and followed by sent response to client,

Java provide HttpsURLConnection class for HTTPS connection, let�s have a look on API.

If you are using Apache AXIS client (I mean if you are using stub to connect the web services) , it is very simple and you need to set the few properties.
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic