I am using spring web-service client to call a web service. The web service performs mutual authentication. We have been provided with .p12 (PCKS12) client certificate. I exported it to JKS using keytool.
Then I have provided JKS keystore to Wss4jSecurityInterceptor. But I receive following exception. Not sure what the problem is?
org.springframework.ws.client.WebServiceIOException: I/O error: Received fatal alert: bad_certificate; nested exception is javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
Below is my Wss4jSecurityInterceptor entry in applicationContext.xml file.