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.
master
Andreas Auernhammer 5 years ago committed by GitHub
parent 9b3b04ecec
commit 145f501a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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,

Loading…
Cancel
Save