Scott,
Have you also added the lines:
// Add SunJSSE as a Cryptographic Service Provider
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
// Add SunJSSE as a protocol handler so that HTTPS is known to the
java.net.URL class
Properties systemProperties = System.getProperties();
systemProperties.put("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
I haven't used JSSE with a servlet yet but these are needed.
Peter
-----Original Message-----
From: F. Scott Johnson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 03, 2000 1:17 PM
To: [EMAIL PROTECTED]
Subject: https connection
I need my servlet to make an https:// (secure) connection
to another website which also demands a pop-up style
authentication. I downloaded and installed JSSE.
I am running under JDK 1.2
The servlet simply reports that https is an unknown protocol.
Here's the relevant (test) code:
URL verisign = new URL("https://www.verisign.com/");
BufferedReader in = new BufferedReader(
new InputStreamReader(
verisign.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
out.println(inputLine);
in.close();
}
Any ideas ? All I get is https-unknown-protocol.
have I installed jsee incorrectly? A javac -verbose prog.java
shows that the compiler never even looks at the jsee classes
in javax.*.*, it just looks at .../jre.jar
-Scott
___________________________________________________________________________
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 and each of its 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