-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e6b513
commit 64a6f4f
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64a6f4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit breaks TLS support for the AMQP 1.0 client. When you override the Hostname parameter in the amqp.Dial method, the TLS path now expects the host's certificate to match something of the form "vhost:[specified vhost]". That simply won't work.
Here is the error when running with a urlstring that specifies 'amqps':
level=ERROR msg="consumer failed to connect" protocol=amqp-1.0 consumerId=1 hostname=vhost:/ error="tls: failed to verify certificate: x509: certificate is valid for [my host name here], not vhost:/"