Configuring Mutual Certificate security b/w Netbeans service & WCF client
I am trying to access a WS developed using NetBeans RC2 (using Mutual Certificate Security) from a WCF client. Have been fishing around couple of forums but didn't get luck to resolve the following probs/errors:
While configuring ws within netbeans, I am using xws-security-server within the keystore store, however, the truststore button is disabled as a result of which I cannot specify the client certificate within cacerts.jks.( I have created a client certificate using makecert.exe and then added it to the appropriate store, the certificate could be seen using the mmc.)
The communication from client to server seems to be alright as the wcf has no problem in locating the server's certificate (imported to CurrentUser store) and cleint private key (configured within the web.config file).
Within glassfish, the soap request could be seen. Although I have imported client's certificate within cacerts.jks, however, when the soap request is received, following error is thrown:
"sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ".
This to my understanding is 'cause of the fact that runtime cannot find the appropriate client certificate, which goes back to the original problem of the greyed out truststore button.
If no truststore setting is required then what should be the alias of the client certificate in the cacerts.jks assuming the runtime is looking into the default cacerts store?
Any help in this matter would be highly appreciated as I have spent a lot of time trying to resolve this problem.