I secured my rest services for certificate authentication and https for my
server
I was able to configure my rest client to send certificate along with my
request data.
However, cxf is trying to encrypt my return data and it is throwing an
exception.

Any idea?

Here is my http conduit 

<http:conduit name="\{https://localhost\:.*\}WebClient\.http-conduit";>
        <http:client ConnectionTimeout="3000000" ReceiveTimeout="3000000"/>
        <http:tlsClientParameters disableCNCheck="true">
            <sec:keyManagers keyPassword="client">
                   <sec:keyStore type="JKS" password="client" 
                        file="src/test/resources/keys/client.jks"/>
                   </sec:keyManagers>
                <sec:trustManagers>
                   <sec:keyStore type="JKS" password="mytrust"
                       file="src/test/resources/keys/truststore.jks"/>
                </sec:trustManagers>
        </http:tlsClientParameters>
    </http:conduit>



2012-06-27 09:32:50,029 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] -
<Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingOutInterceptor@
6d3285c8>
2012-06-27 09:32:50,030 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] -
<Invoking handleMessage on interceptor
org.apache.cxf.rs.security.xml.XmlEncOutIntercept
or@5eba6f07>
2012-06-27 09:32:50,334 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] -
<Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSOutIntercep
tor@21cf6527>
2012-06-27 09:32:50,340 WARN
[org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor] - <No message body
writer has been found for response class DOMSource.>
2012-06-27 09:32:50,341 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] -
<Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderIntercept
or$MessageSenderEndingInterceptor@9300217>
2012-06-27 09:32:50,342 INFO
[org.apache.cxf.interceptor.LoggingOutInterceptor] - <Outbound Message
---------------------------
ID: 1
Response-Code: 500
Content-Type: text/plain
Headers: {Date=[Wed, 27 Jun 2012 13:32:50 GMT]}
Payload: No message body writer has been found for response class DOMSource.
-------------------------------------->

--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-Rest-and-Certificate-Authentication-tp5710373.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to