From a9465ad36cb6cf1561e1c0a2b621becfcd281860 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 3 Jul 2018 16:48:50 +0100 Subject: [PATCH] Don't verify self-signed AS certificates --- .../matrix-org/dendrite/appservice/query/query.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/appservice/query/query.go b/src/github.com/matrix-org/dendrite/appservice/query/query.go index 5c8e3ece9..119502904 100644 --- a/src/github.com/matrix-org/dendrite/appservice/query/query.go +++ b/src/github.com/matrix-org/dendrite/appservice/query/query.go @@ -18,6 +18,7 @@ package query import ( "context" + "crypto/tls" "encoding/json" "net/http" "net/url" @@ -106,6 +107,12 @@ func (a *AppServiceQueryAPI) RoomAliasExists( func makeHTTPClient() *http.Client { return &http.Client{ Timeout: time.Second * 30, + // TODO: Verify certificates + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, // nolint: gas + }, + }, } }