streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

Unable to use self-signed certificates #384

Closed bonedaddy closed 5 years ago

bonedaddy commented 5 years ago

I'm attempting to use self-signed certificates with my RabbitMQ server, and am using the amqps scheme, as opposed to amqp.DialTLS which as per docs say it does server, and host verification.

When using self-signed certificates, I get the error x509: certificate signed by unknown authority. Is this because I'm using the "zero value tls config"? If so, is the only way to solve this by providing a tls.Config and using amqp.DialTLS

bonedaddy commented 5 years ago

solved the issue by importing the client certificates