You need to let WSS4J know what keystore alias to use to get the private key to sign the request. So you need to add the following to your client WSS4JOutInterceptor configuration:
<entry key="user" value="myalias"/> By the way, your "org.apache.ws.security.crypto.merlin.keystore.alias" definition appears to be incorrect in your Crypto property files as well, as there is no "aka" alias in the keystore listing you provided. Colm. On Tue, Apr 30, 2013 at 6:52 PM, minajagi <[email protected]>wrote: > Thanks for the reply > I have made the changes you mentioned however I'm afraid I still don't > understand what user should I be using use.I still get the > > *org.apache.cxf.binding.soap.SoapFault: Empty username for specified > action.* > > You mention, > > "/You aren't specifying any "user" in the WSS4JOutInterceptor client spring > configuration. Normally, you would specify a user that corresponds to the > keystore alias. /" > > Can you please let me know based on the settings I have outlined above > where > can I get the user.When I use the keytool -list -v I don't see anything > related to user on it.So what user should I be using? > > Is there a way to specify a user while creating the .jks files?I don't seem > to have used any options and neither do I see anything on the keytool help > that talks about a user. > > I'm lost at the moment.Please help. > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/cxf-keystore-security-problem-org-apache-cxf-binding-soap-SoapFault-Empty-username-for-specified-act-tp5726920p5726985.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
