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

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器