p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Servlets (http://p2p.wrox.com/forumdisplay.php?f=111)
-   -   java to C# translation (http://p2p.wrox.com/showthread.php?t=14956)

vinny4545 July 2nd, 2004 07:18 PM

java to C# translation
 
Does anyone know the .net equivalent of this java code:

public void init(ServletConfig config) thows ServletException {
     super.init(config);

   //Set up SSL properties to find the keystore correctly
  System.setProperty("javax.net.debug","all");
System.setProperty("javax.net.ssl.keystore", "/var/tomcat4keys/keystore");
System.setProperty("javax.net.ssl.keyStorePassword ", "SDKTest");
System.setProperty("java.protocol.handler.pkgs","c om.sun.net.ssl.internal.www.protocol");

//Make sure java is configured to handle https by adding the
//appropriate SSL provider to the security manager.
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

}

this piece of code specifies the use of SSL, keystore, and keystore password and a certificate for all communications between 2 servers

does anyone have any idea? thanks in advance

vin



johnz September 22nd, 2004 06:39 PM

vin,

did you get any answer yet?

thanks

john


Quote:

quote:Originally posted by vinny4545
 Does anyone know the .net equivalent of this java code:

public void init(ServletConfig config) thows ServletException {
     super.init(config);

//Set up SSL properties to find the keystore correctly
System.setProperty("javax.net.debug","all");
System.setProperty("javax.net.ssl.keystore", "/var/tomcat4keys/keystore");
System.setProperty("javax.net.ssl.keyStorePassword ", "SDKTest");
System.setProperty("java.protocol.handler.pkgs","c om.sun.net.ssl.internal.www.protocol");

//Make sure java is configured to handle https by adding the
//appropriate SSL provider to the security manager.
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

}

this piece of code specifies the use of SSL, keystore, and keystore password and a certificate for all communications between 2 servers

does anyone have any idea? thanks in advance

vin




jayakumari June 24th, 2008 04:38 AM

Hi Vin/Johnnz,
  Have you found the way to do this? i am also having certificates in the form of keystores. I wanted to use them in c# as just like in Java. Could you please let me know if you have got any idea about to resolve this?


phil.boyd@live.com September 4th, 2015 12:37 PM

Try this
 
http://blog.ejbca.org/2008/02/conver...n-jks-and.html


All times are GMT -4. The time now is 07:09 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.