Certs are generated for "localhost", and "rabbitmq".
Using docker-compose, the certs are mounted in the container correctly and rabbitmq is running successfully. amqp:// works, but amqps:// gives "EOF" on connect.
I have tried both with the more complex NewCertPool etc, and without, with just a simple DialTLS call, I still get the same error with no other information.
I traced it through to // Read header, payload. in conn.go. Why is reading the header failing?
Debugging shows the TLS conn isConnected to be true, if that helps...
Certs are generated for "localhost", and "rabbitmq".
Using docker-compose, the certs are mounted in the container correctly and rabbitmq is running successfully.
amqp://
works, butamqps://
gives "EOF" on connect.I have tried both with the more complex
NewCertPool
etc, and without, with just a simpleDialTLS
call, I still get the same error with no other information.Simple usage:
Error:
NewCertPool
usage (removed error checking for ease of grokking):Error:
I traced it through to
// Read header, payload.
inconn.go
. Why is reading the header failing? Debugging shows the TLS connisConnected
to be true, if that helps...What am I doing wrong? Docker-compose is below: