File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Client Certificate not presented when using Sun JDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Client Certificate not presented when using Sun JDK" Watch "Client Certificate not presented when using Sun JDK" New topic
Author

Client Certificate not presented when using Sun JDK

Cindy Jones
Ranch Hand

Joined: Oct 08, 2002
Posts: 66
I am trying to connect to a server that requires 2 way authentication. The keystore has a private key and intermediate certificate that the server issued.

I point to the keystore using the parameter -Djavax.net.ssl.keyStore.

My request is resulting in an error response when I try to connect using Sun JDK1.4.2, 1.5, IBM JDK 1.5.
of HTTP Error 403.7 Forbidden: SSL client certificate is required. from the server.

However this works when I use IBM Jdk1.4.2

Any thoughts?

Thanks!
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
did you supply the keystore and/or entry password(s)?


Nice to meet you.
Cindy Jones
Ranch Hand

Joined: Oct 08, 2002
Posts: 66
Yes I did. The client certificate is just not being presented by the JDK. I tried to run the same code with the same keystore and certificate with IBM JDK1.4.2 and that works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client Certificate not presented when using Sun JDK