ssl - apache Camel cxf https 不工作

标签 ssl https wsdl cxf apache-camel

我正在尝试使用 apache camel cxf 发布网络服务。我可以使用 http 访问已发布的网络服务。但是我正在尝试使用 https 配置相同的内容。但我无法让它工作。

下面是部分spring上下文和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>

最佳答案

第一个配置是针对 http 客户端的,不是针对服务器端的。 您可以在此处找到配置示例[1]

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

关于ssl - apache Camel cxf https 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11340092/

相关文章:

xml - nillable 和 minOccurs XSD 元素属性

ssl - iOS 7.1 OTA SSL 错误

xml - 如何在 Flutter 中发送或接收 xml 文件?

http - 通过 ssl/https 加载内部文件

asp.net - 在安全页面(或 ssl )上的 iframe 中加载不安全内容 https ://in asp.net

c# - 在 WCF 中将 ContractNamespace 用于命名空间枚举

azure - 使用 initContainer 加载的证书/ key 设置 NGINX TLS

ssl - 在 MAMP 上禁用 SSL

linux - rsyslog x509/certvalid需要允许的同级

java - Web 服务端点的 URL 标准?