[amqp output] Allow external auth (cert-based tls auth)

closes #863
This commit is contained in:
Eugene Dementiev
2016-03-16 21:44:11 +03:00
committed by Cameron Sparr
parent bac1c223de
commit 530b4f3bee
3 changed files with 30 additions and 4 deletions

View File

@@ -109,6 +109,7 @@ func GetTLSConfig(
RootCAs: caCertPool,
InsecureSkipVerify: InsecureSkipVerify,
}
t.BuildNameToCertificate()
} else {
if InsecureSkipVerify {
t.InsecureSkipVerify = true