douju2012 2019-02-27 12:12
浏览 524

RabbitMQ-Tls连接-Golang

I configured RabbitMQ connection using follow link: https://github.com/streadway/amqp/blob/master/examples_test.go

Certificate I created according to the instructions here: https://www.rabbitmq.com/ssl.html#enabling-tls-paths

I use RabbitMQ 3.7.0 installed in docker. After the call amqp.DialTLS I receive "Bad certificate" error on the server side (in the docker logs).

I suppose that the problem is that certificate should contain the server name and if so, which server name should I set in the certificate if RabbitMQ is installed inside docker?

Besides, any other ideas?

  • 写回答

1条回答 默认 最新

  • drgawfsf1069 2019-03-03 16:18
    关注

    I solved this issue by adding to the hosts file full_machine_name from the connection string to RabbitMQ with appropriate IP address: amqps://connection_string_to_RabbitMQ@full_machine_name:5671

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!