Re: HTTPS in a client application

Jeff Nisewanger (jdn@puuoo.eng.sun.com)
Mon, 16 Nov 1998 10:27:16 -0800 (PST)

> I'm attempting to use https in an application, but it seems no one knows
> how to do it. References I've found in newsgroups say I must create my
> own URLConnection and URLStreamHandler classes to support HTTPS.
> I've found sun.net.www.protocol.https and tried to make use of these, but I
> get an SSL handshake failure (no cipher suites in common). Is using these sun
> classes feasible?
> Any examples of HTTPS through an application would be greatly appreciated.

If you have SSL support available it will provide a
URL protocol handler for the https URL scheme. You should be able
to use this like any other scheme via the java.net.URL class.
Sun supports SSL in Java Web Server, Hot Java and a few other
products but does not currently have a reference implementation
that is downloadable from http://java.sun.com. The
sun.net.www.protocol.https class is part of the https URL handler
in Sun's SSL implementation. If you are seeing a "no cipher
suites in common" error it could be that the native method
support library was not found in the LD_LIBRARY_PATH (Solaris)
or on the PATH (win32) environment variables.

Jeff