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.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com