Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 46704 invoked from network); 16 Dec 2003 03:16:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Dec 2003 03:16:24 -0000 Received: (qmail 89888 invoked by uid 500); 16 Dec 2003 03:15:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 89875 invoked by uid 500); 16 Dec 2003 03:15:55 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 89864 invoked from network); 16 Dec 2003 03:15:55 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3C382.F0960D1A" Subject: Couldn't find trusted certificate Date: Mon, 15 Dec 2003 19:16:04 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Couldn't find trusted certificate Thread-Index: AcPDgvCXCG0p1iDiSeKbS4SOcK09RQ== From: "Coffman, Bill" To: X-OriginalArrivalTime: 16 Dec 2003 03:16:04.0844 (UTC) FILETIME=[F0BABAC0:01C3C382] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C3C382.F0960D1A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I am new to AXIS, and even pretty new to Java. My goal is to write a soap client that connects to a url over https, with a certificate. Having lot's of trouble with that, I am attempting to simply connect to a basic HTTPS server. The sample code from jsse1.0.3_02 gives a URLReader example, that doesn't work with my system. I get the infamous "Exception in thread "main" javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate" error. The code is below: =20 import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL verisign =3D new URL("https://www.verisign.com/"); BufferedReader in =3D new BufferedReader( new InputStreamReader( verisign.openStream())); =20 String inputLine; =20 while ((inputLine =3D in.readLine()) !=3D null) System.out.println(inputLine); =20 in.close(); } } =20 My compiler is j2sdk1.4.0, and interpreter is j2re1.4.0. =20 Now, if I change the URL to http://www.paypal.com , (note the http, and not https) the program works! Inspite of the fact paypal will not send any unencrypted html. It forwards, via 302 code, to https, and then in fact prints out the https code that I request. I am not even trying to use a certificate here, but still get this message. =20 I would appreciate any help. Please also reply to my email address: bcoffman@paypal.com as I have having some issues receiving the mail, even though I am subscribed. =20 Thanks, =20 Bill Coffman=20 Senior Software Engineer, QA=20 PayPal, an ebaY Company=20 =20 ------_=_NextPart_001_01C3C382.F0960D1A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am new to AXIS, and even pretty = new to Java.  My goal is to write a soap client that connects to a url = over https, with a certificate.  Having lot’s of trouble with = that, I am attempting to simply connect to a basic HTTPS server.  The sample code from jsse1.0.3_02 gives a URLReader example, that doesn’t work with my system.  I get the infamous “Exception in thread = "main" javax.net.ssl.SSLHandshakeException: Couldn't find trusted = certificate” error.  The code is below:

 

import java.net.*;

import java.io.*;

public class URLReader {

    public static void main(String[] args) throws Exception {

        URL verisign =3D new = URL("https://www.verisign.com/");

        BufferedReader in =3D = new BufferedReader(

           = ;            =          new InputStreamReader(

     =             &= nbsp;           &n= bsp;  verisign.openStream()));

 

        String = inputLine;

 

        while ((inputLine =3D in.readLine()) !=3D null)

           = ; System.out.println(inputLine);

 

        = in.close();

    }

}

 

My compiler is j2sdk1.4.0, and interpreter is = j2re1.4.0.

 

Now, if I change the URL to http://www.paypal.com, (note the http, and not https) the program works!  Inspite of the = fact paypal will not send any unencrypted html.  It forwards, via 302 = code, to https, and then in fact prints out the https code that I request.  = I am not even trying to use a certificate here, but still get this = message.

 

I would appreciate any help.  Please also reply = to my email address: bcoffman@paypal.com as I have having some issues receiving the mail, even though I am = subscribed.

 

Thanks,

 

Bill Coffman

Senior Software Engineer, QA =

PayPal= , an eb= aY Company =

 

=00 ------_=_NextPart_001_01C3C382.F0960D1A--