Stella,
The JDK does not come with an implementation of SSL
or HTTPS. You will have to use either a commercial SSL
library (e.g. Baltimore, Phaos, RSA) or Sun's JSSE.
Peter Booth
> -----Original Message-----
> From: Yang XIAO [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 20, 2000 11:18 AM
> To: [EMAIL PROTECTED]
> Subject: HELP: SSL imp not avai!!
>
> Hi, there
>
> The following java code can be run on workstation without problem but on a
> winnt, when call java TalkPega "https://..." an error message:
> Exception in thread "main" java.net.SocketException: SSL implementation
> not
> available
>
> Can anyone please tell me why?
>
> thanks
> Stella
>
> import java.io.*;
> import java.net.*;
> import java.security.*;
> import javax.net.ssl.*;
> import com.sun.net.ssl.*;
>
> public class TalkPega {
> public static void main(String[] args) throws Exception {
>
> System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.
> www.protocol");
> if (args.length != 1) {
> System.exit(1);
> }
>
> String pegUrl = args[0];
>
> URL url = new URL(pegUrl);
> URLConnection connection = url.openConnection();
>
> BufferedReader in = new BufferedReader(new InputStreamReader(
> connection.getInputStream()));
> String pegReturn;
>
> // then write the response
> while ((pegReturn = in.readLine()) != null)
> System.out.println("Pegasus Response: " + pegReturn);
> in.close();
> }
> }
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient. CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each of
their subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this message
are those of the individual sender, except where the message states
otherwise and the sender is authorised to state them to be the views of
any such entity.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html