Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2004, 07:18 PM
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
  #2 (permalink)  
Old September 22nd, 2004, 06:39 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Reply With Quote
  #3 (permalink)  
Old June 24th, 2008, 04:38 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?

Reply With Quote
  #4 (permalink)  
Old September 4th, 2015, 12:37 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Try this

http://blog.ejbca.org/2008/02/conver...n-jks-and.html
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code translation from ASP to C# motemape ASP.NET 2.0 Basics 0 May 27th, 2007 12:01 PM
i18n Translation jagadeesh BOOK: Expert One-on-One J2EE Design and Development 0 June 13th, 2006 08:18 AM
Universal Translation in BizTalk2004 karjagis Biztalk 0 April 21st, 2006 10:00 AM
java to C# translation vinny4545 ASP.NET 1.0 and 1.1 Professional 0 July 2nd, 2004 07:19 PM
Code translation gbaker BOOK: Beginning Java 2 3 December 3rd, 2003 11:08 AM



All times are GMT -4. The time now is 05:34 AM.


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