From 145f501a211b0f665eeb2361d63cb90673857f76 Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Mon, 4 May 2020 19:17:13 +0200 Subject: [PATCH] use HTTP/2 when connecting to KES (#9514) This commit makes the KES client use HTTP/2 when establishing a connection to the KES server. This is necessary since the next KES server release will require HTTP/2. --- cmd/crypto/kes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/crypto/kes.go b/cmd/crypto/kes.go index 825f39971..bfc1df752 100644 --- a/cmd/crypto/kes.go +++ b/cmd/crypto/kes.go @@ -112,6 +112,7 @@ func NewKes(cfg KesConfig) (KMS, error) { Certificates: []tls.Certificate{cert}, RootCAs: certPool, } + cfg.Transport.ForceAttemptHTTP2 = true return &kesService{ client: &kesClient{ addr: cfg.Endpoint,