tls example conf ssl https wsdl cxf apache-camel

ssl - conf - cxf tls example



apache camel cxf https no funciona (1)

La primera configuración es para el cliente http, no para el lado del servidor. Puede encontrar el ejemplo de configuración aquí [1]

[1] http://cxf.apache.org/docs/jetty-configuration.html

Estoy intentando publicar un servicio web usando apache camel cxf. Puedo acceder al servicio web publicado usando http. Sin embargo, estoy tratando de configurar el mismo usando https. Pero no puedo hacerlo funcionar.

a continuación son partes del contexto de primavera y archivos wsdl

<camel-cxf:cxfEndpoint id="myEndoint" address="http://localhost:9000/PostXml/" serviceClass="com.XXXXXXXXXX.techquest.ServicesPortType" xmlns:ssp="http://techquest.interswitchng.com/" endpointName="ssp:PostXml" serviceName="ssp:PostXml" /> <http:conduit name="*.http-conduit"> <http:tlsClientParameters secureSocketProtocol="SSL"> <sec:keyManagers keyPassword="password"> <sec:keyStore type="JKS" password="password" file="A:/apache-sermfino_conf/cherry.jks" /> </sec:keyManagers> <sec:trustManagers> <sec:keyStore type="JKS" password="password" file="A:/apache-ser/truststore.jks" /> </sec:trustManagers> <sec:cipherSuitesFilter> <!-- these filters ensure that a ciphersuite with export-suitable or null encryption is used, but exclude anonymous Diffie-Hellman key change as this is vulnerable to man-in-the-middle attacks --> <sec:include>.*_EXPORT_.*</sec:include> <sec:include>.*_EXPORT1024_.*</sec:include> <sec:include>.*_WITH_DES_.*</sec:include> <sec:include>.*_WITH_AES_.*</sec:include> <sec:include>.*_WITH_NULL_.*</sec:include> <sec:exclude>.*_DH_anon_.*</sec:exclude> </sec:cipherSuitesFilter> </http:tlsClientParameters> <http:client AutoRedirect="true" Connection="Keep-Alive" /> </http:conduit>

=============================================== ==========================

<wsdl:portType name="ServicesPortType"> <wsdl:operation name="PostXml"> <wsdl:input message="tns:PostXml" /> <wsdl:output message="tns:PostXml" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ServicesSoap12Binding" type="tns:ServicesPortType"> <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="PostXml"> <soap12:operation soapAction="PostXml" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ServicesPortTypeService"> <wsdl:port binding="tns:ServicesSoap12Binding" name="ServicesSoap12Endpoint"> <soap12:address location="http://localhost:9000/PostXml" /> </wsdl:port> </wsdl:service>