Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 6th, 2005, 07:47 AM
darngar darngar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 2 darngar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 24 sec
Reputation Power: 0
Client Authentication in Java!!!

Hi,

I am new to the Java Security.
I am working on writing a Java HTTPS Client with Client Authentication using the HttpsURLConnection class.

Initially I had the code to support HTTP to send POST Requests to the server. I was using the HttpURLConnection class for this.

Now since I need to support HTTPS, I am converting my code to use HttpsURLConnection class instead of HttpURLConnection class.

I assume that only change which is needed in my code is to add the functionality to make use of the certificates and private keys.

I have right now two things with me

i. CA certificate for the Server since server uses the Self-Signed certificate. Certifcate is in a file by name serverca.cer
ii. Certificate and Private key for Client (for client authentication) in a single file keystore.p12 (PKCS#12 format??)

I am not sure how to make use of these certificates to support the HTTPS.
As far as I know, I think I need to create a keystore out of these certificates and make changes in my code to make use of this keystore along with the HttpsURLConnection object.

Can anyone tell me exactly how to do it. Sample code will be of great help.

Thanks
Venky

Reply With Quote
  #2  
Old January 24th, 2007, 08:19 PM
san30 san30 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 san30 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 42 sec
Reputation Power: 0
Hi,


Was wondering if you ever found the answers to your questions.

If yes...could you provide the information.

Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Client Authentication in Java!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT