c# - How to connect to ActiveMQ over SSL from Apache.NMS C# client library
问题描述
I have a server where we have installed ActiveMQ and also generate the necessary certificates for SSL.
I have added a broker certificate to my local machine's Keystore and then tried to connect ActiveMQ over SSL but getting an error like: not able to connect using ipaddress:61617
.
Everything is working fine with TCP but the problem is when I tried to connect over SSL.
Here is the code snippet for connecting to ActiveMQ.
IConnectionFactory factory = new NMSConnectionFactory(AMQURL);
IConnection AMQConnection = factory.CreateConnection();
AMQConnection.ClientId = ClientId;
AMQConnection.Start();
ISession AMQSession = AMQConnection.CreateSession();
I am referring to this documentation for setting up SSL.
Here is the Active MQ endpoint that I am trying to connect. activemq:ssl://server-ip-address:61617
I am using Apache.NMS.ActiveMQ version 1.7.2
I have added the following line in trasportconnectors section in activemq.xml file.
解决方案
推荐阅读
- javascript - 使用上下文映射鼠标坐标
- html - 如何使用两个条件动作制作 Haml 表单
- javascript - 输入框计算器不会改变结果值
- azure - 如何将 SSL 证书附加到 Azure 容器实例
- java - 如何在java中连续读取在线/网络文件?
- bash - Jenkins shell 脚本:sed: -e expression #1, char 54: unterminated `s' command
- javascript - Threejs UV 协调纹理尺寸过大问题
- mysql - SQL 数据更新查询 关于
- c# - 无法添加参考:System.Web.Http 4.0.0
- regex - 正则表达式 Laravel 验证以检查输入