How to setup two way SSL for webservices in JBoss EAP?
Issue
-
We are looking to develop a web service with two way SSL. We started tweaking webservice\proxy_security samples in JBoss. We modified web.xml
<auth-method>CLIENT-CERT</auth-method>
and deployed it in the server. -
After successfully making a two way SSL call from a web service client to the webservice running on EAP 5.x, getting the following exception on the client for authentication :-
Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 401: Unauthorized
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:196)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:168)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at com.sun.proxy.$Proxy29.getMessage(Unknown Source)
at com.test.clientsample.ClientSample.main(ClientSample.java:24)
- We are making a web service call, and are not sure how to configure JBoss to send certificate with the Web Service request
Environment
-
Red Hat JBoss Enterprise SOA Platform (SOA-P)
- 5.x
- 4.3
- 4.2
-
Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 5.x
- 4.3
- 4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.