【问题标题】:How to disable SSL3 for activemq https transport?如何为 activemq https 传输禁用 SSL3?
【发布时间】:2015-07-09 21:20:30
【问题描述】:

我正在尝试为 activemq https 传输禁用 SSL3。 (activemq-5.11)

我按照How to disable SSLv3 protocol in Apache ActiveMQ? 中的建议尝试了 transport.enabledProtocols 选项

transport.enabledProtocols 适用于 ssl:// 传输,但不适用于 https:// 传输。 当我尝试使用 -ssl3 选项连接 openssl 时,我没有看到握手失败。

谢谢

【问题讨论】:

  • 请有人回答这个问题...

标签: ssl activemq


【解决方案1】:

在调用服务之前,您应该使用 .Net 4.5+ 并在代码中添加以下内容:

System.Net.ServicePointManager.SecurityProtocol=SecurityProtocolType.Tls12;

这里有一篇文章: http://passionatecoder.ca/Posts/Details/47

【讨论】:

    【解决方案2】:

    Jetty front 是 activemq 的 HTTP 方面,并使用 spring 连接器进行配置。这使您可以添加 excludeProtocols 属性,并将 SSLv3 作为值:

    <bean id="SecureConnector" class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
        <property name="port" value="8162" />
        <property name="keystore" value="file:${activemq.conf}/broker.ks" />
        <property name="password" value="password" />
        <property name="excludeProtocols" value="SSL,SSLv2,SSLv3" />
    </bean>
    

    【讨论】:

      猜你喜欢
      • 2014-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-25
      • 2015-06-15
      • 2016-04-16
      • 2018-01-26
      • 2022-12-15
      相关资源
      最近更新 更多