Camel CXF-Http to Https => http://docs.oasis-open.org/wss/2004/01/oasis-200
milanmilas Jan 22, 2013 12:35 PMI am trying to secure my CXF endpoint in the simplest possible way
<camelcxf:cxfEndpoint id="serviceEndpoint"
address="https://localhost:443/cxf/pocesb/webservices/helloService"
wsdlURL="META-INF/wsdl/say_hi.wsdl"
serviceClass="com.pocesb.SayHiEndpoint">
</camelcxf:cxfEndpoint>
<httpj:engine-factory bus="cxf">
<httpj:engine port="443">
<httpj:tlsServerParameters>
<sec:keyManagers keyPassword="passwo">
<sec:keyStore type="PKCS12" password="passwo"
file="C:\Fuse\Programs\FuseESB\etc\keysto.pfx"/>
</sec:keyManagers>
<sec:trustManagers>
<sec:keyStore type="PKCS12" password="passwo"
file="C:\Fuse\Programs\FuseESB\etc\keysto.pfx"/>
</sec:trustManagers>
<sec:cipherSuitesFilter>
<sec:include>.WITH3DES_.</sec:include>
<sec:include>.WITHDES_.</sec:include>
<sec:exclude>.WITHNULL_.</sec:exclude>
<sec:exclude>.DHanon_.</sec:exclude>
</sec:cipherSuitesFilter>
<sec:clientAuthentication want="true" required="false"/>
</httpj:tlsServerParameters>
</httpj:engine>
</httpj:engine-factory>
I am calling this service from WCF C# application, it used to work with http.
And I am getting this exception:
org.apache.cxf.binding.soap.SoapFault: MustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security are
not understood.
at org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor.checkUltimateReceiverHeaders(MustUnderstandInterceptor.java:150)[167:org.apache.cxf.bundle:2.5.0.fuse-70-097]
at
org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor.handleMessage(MustUnderstandInterceptor.java:96)[167:org.apache.cxf.bundle:2.5.0.fuse-70-097]
at
org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor.handleMessage(MustUnderstandInterceptor.java:49)[167:org.apache.cxf.bundle:2.5.0.fuse-70-097]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[167:org.apache.cxf.bundle:2.5.0.fuse-70-097]
Is there example of securing CXF in Fuse blueprint or am I missing something in this code?
I have tried to use <import resource=cxf-extension-http-jetty.xml
but import statement is not receognised, not sure if this is possible only in sprint not
blueprint?