|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Hi,
Was wondering if you ever found the answers to your questions. If yes...could you provide the information. Thanks! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Client Authentication in Java!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|