I\'m trying to set up a Java web service running in Tomcat 7 to use mutual (2-way) authentication. It seems like no matter what I do, connecting to the service on the secur
I would try the following steps
That command will spool out PILES of information. What you need to check on that is that the server is presenting a list of CA's that it will accept for mutual authentication. If the listed CAs do not contain your certificate then the client will have no idea how to locate a match for the server.
This can be made much easier using the openssl command 's_client'
openssl s_client -connect localhost:8443 -showcerts
That will format out some information that can be incalculable in their value of debugging this.
If the server does not present a list of "acceptable" CAs you will have to do some magic when you produce your certificate set.
Let me know what you find out and I can hopefully steer you in the right direction.
OP added additional information
Ok so the following is a bit of a problem for you:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 263 bytes
---
Two things jump out immediately
So for (1):
Now for (2) we really need to have (1) working first - so get that up and running and we'll see where we are at that point.