From fbe8b3259d5086d00c5040bc23a00c5755d98950 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 29 Mar 2017 21:42:55 +0100 Subject: [PATCH] webhook: Add support of custom CAs (#4000) --- cmd/notify-webhook.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/notify-webhook.go b/cmd/notify-webhook.go index c64421996..01b141878 100644 --- a/cmd/notify-webhook.go +++ b/cmd/notify-webhook.go @@ -17,6 +17,7 @@ package cmd import ( + "crypto/tls" "fmt" "io/ioutil" "net" @@ -81,6 +82,7 @@ func newWebhookNotify(accountID string) (*logrus.Logger, error) { // Configure aggressive timeouts for client posts. Client: &http.Client{ Transport: &http.Transport{ + TLSClientConfig: &tls.Config{RootCAs: globalRootCAs}, DialContext: (&net.Dialer{ Timeout: 5 * time.Second, KeepAlive: 5 * time.Second,