I have successfully followed the steps outlined here: https://netbeans.org/kb/docs/websvc/jax-ws.html
Everything works correctly (i.e. I can run a client jar file from terminal and have it send two numbers to add; the calculator web service receives them and returns the correct sum in the SOAP response).
I now wish to add authentication using x509 certificates, but I am unable to find specific documentation on how to do so. The closest link I found is a secure calculator here:
But this appears to be using “Username Authentication with Symmetric Keys”, which is not what I am looking for.
I am looking for the calculator client to send its x509 certificate over to the calculator web service. The calculator web service authenticates the x509 certificate it just received from the client. If authentication is successful, it will proceed to add the two numbers sent by the client. Otherwise it returns “invalid cert”.
This seems like a simple thing to do, but I am not able to find any documentation or a sample netbeans project that does this.
This website seems promising: https://docs.oracle.com/cd/E17802_01/webservices/webservices/reference/tutorials/wsit/doc/WSIT_Security9.html#wp162511
Specifically the Example: Mutual Certificates Security (MCS) . However, when I get to the step in the “Securing the Example Web Service Client Application (MCS) section that says:
Select the WSIT Configuration tab of the CalculatorWSService dialog.
Netbeans does not have a WSIT Configuration tab. So this appears to be outdated since I am running Netbeans 8.2.
Would appreciate all / any help from the community.