与 Apache Active MQ 的 SSL 连接

发布于 2024-11-07 10:42:40 字数 777 浏览 2 评论 0原文

我正在尝试对 Apache Active MQ 使用 SSL - 但失败了。

我的示例在“tcp://localhost:61616”下工作正常,但在“ssl://localhost:61616”下失败

    BrokerService broker = new BrokerService();
    broker.setUseJmx(true);
    broker.addConnector(ssl://localhost:61616);
    broker.start();

我的控制台显示(使用 -Djavax.net.debug=ssl)大量相同的日志消息: ......

ActiveMQ Transport Server: ssl://localhost:61616, called closeSocket()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
ActiveMQ Transport Server: ssl://localhost:61616, called closeSocket()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false

我做错了什么

I am trying to use SSL for Apache Active MQ - but it fails.

My example works fine with "tcp://localhost:61616" - but fails with "ssl://localhost:61616"

    BrokerService broker = new BrokerService();
    broker.setUseJmx(true);
    broker.addConnector(ssl://localhost:61616);
    broker.start();

My console shows (with -Djavax.net.debug=ssl) tons of the same log messages:
....

ActiveMQ Transport Server: ssl://localhost:61616, called closeSocket()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
ActiveMQ Transport Server: ssl://localhost:61616, called closeSocket()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false

....

What am I doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独自唱情﹋歌 2024-11-14 10:42:40

您应该查看 ActiveMQ 网站上的文档使用 SSL。您需要适当地设置密钥库和信任库,以便客户端和服务器通过 SSL 进行协商以建立信任。您可能还想查看 ActiveMQ 源中的 SSL 单元测试,以更深入地了解如何使用 SSL 传输设置 BrokerService 对象。

You should have a look at the documentation on the ActiveMQ website for using SSL. You need to setup the keystore and truststore appropriately so that client and server and negotiate over SSL to establish trust. You might want to also look at the SSL unit tests in the ActiveMQ source for some more insight into how to setup the BrokerService object with an SSL transport.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文