Hi,

I am trying to use HTTPSConnection that comes as part of JSSE package inside
a servlet to connect to another server. And I am using JavaWebServer within
which servlets will be run.

When I dynamically loaded the provider using

java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());

after the servlet is run once, my server is not accepting anymore
connections. From all browsers I am getting error message "Unable to contact
to the server because netscape can't find any matching known algorithm".

When I added the provider statically using

security.provider.2=com.sun.net.ssl.internal.ssl.Provider

Javawebserver is failed to start, This is the error message I am getting.

Can't read file 'C:\JAVAWE~1.0\bin\..\keys'.
Provider did not return PKCS8Key
Program c:\JDK12~1.2\bin\java.exe exited with code 1
C:\JAVAWE~1.0\bin\..\bin\jserv.exe
C:\JAVAWE~1.0\bin\..\bin\jserv.exe jserv: Shutting down the server

I tried all combinations changing the order of provider etc. still it is
throwing the same error.

>From this what I figure it out is it is overriding the default security
provider and causing JavaWebServer to fail.

Is there anything I am missing. Is it required always to add provider in
System properties to use JSSE.

Any ideas or suggestions on this are greatly appreciated. Standalone
application programs working well with same code.

Thanks in advance,
gopal

______________________________________________________
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

Reply via email to