File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes mutual authentication ssl with netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "mutual authentication ssl with netbeans" Watch "mutual authentication ssl with netbeans" New topic

mutual authentication ssl with netbeans

Filippo La Torre

Joined: Jun 01, 2012
Posts: 6

I'm trying to create a web service server and client that works with ssl mutual authentication. I chose the stack Metro and Netbeans for development. The server must run on Tomcat. While the client on Glassfish or another.

To start I followed this guide:

I think it's working because for access at https:localhost:8443 I had to add the certificate client.p12 to Firefox and accept what the server.

After that I configured on the NetBeans web service server with:
Secure Service and set the file server.jks for the keystore and the file truststore.jks for the truststore.

I should now create the client but when I try to contact the server to read the WSDL can not get it. Obviously this is because I don't have the client certificate.

My question is how to retrieve the WSDL in these cases? And though I can also generate code for the client, how to set parameters for the client? Should I create a client.jks to set it as the keystore and for truststore parameter use the same truststore.jks I created for the server?

I agree. Here's the link:
subject: mutual authentication ssl with netbeans
It's not a secret anymore!