View Single Post
  #1 (permalink)  
Old July 2nd, 2004, 07:18 PM
vinny4545 vinny4545 is offline
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


Reply With Quote