# JSSE Question

King, Craig A. (CRAIG.A.KING@saic.com)
Wed, 1 Sep 1999 12:13:12 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Artxie: "I have a problen"
- Previous message: Jeff Fitzgerald: "applets and .htaccess files"
- Next in thread: Jeff Nisewanger: "Re: JSSE Question"

    Message-Id: <C501A9CBD6B6D11199D500805FAD1AFC3D7952@us-rancho-bernardo.mail.saic.com>

    From: "King, Craig A." <CRAIG.A.KING@saic.com>

    To: "'java-security@sun.com'" <java-security@Sun.COM>

    Subject: JSSE Question

    Date: Wed, 1 Sep 1999 12:13:12 -0700

Dear java-security,

I have been working with the JSSE for a little more than a week and have
been able to run some things with mixed results. I have created two
keystore files, one for a server and one for a client. The client keystore
contains the server public key as trusted.

Using a server and a client program (one with SSLServerSockets, one with
SSLSockets) I can communicate and exchange data without any problems.
Trying to get the client program to use HTTPS has been difficult.

The client reports a "javax.net.ssl.SSLException: untrusted server cert
chain" error which I cannot seem to fix.

I have set up a java.policy file for the client that includes the path to
the keystore file, and the appropriate permissions required by the security
manager.
Note: without the correct permission (basically all) the following error is
reported:
java.lang.NoClassDefFoundError
com.sun.net.ssl.internal.www.https.HttpsClient

Anyway, to make a short question long... What do I need to do on the client,
when using https, to get it to talk with my server? I can do it with
straight sockets (loading the keystore file in the code), but cannot do it
using a URL created with https.

Thanks,

Craig
> ------------------------------------------------------------------------
> Craig King, SAIC Division Chief Technologist
> Advanced Technical Research Division
> 16701 W. Bernardo Dr.
> San Diego CA 92127
> Tel: (858) 826-5286 Fax: (858) 826-5155
> Craig.A.King@cpmx.saic.com
Unite for Java! - http://www.javalobby.org

- Next message: Artxie: "I have a problen"
- Previous message: Jeff Fitzgerald: "applets and .htaccess files"
- Next in thread: Jeff Nisewanger: "Re: JSSE Question"