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.
This commit is contained in:
Andreas Auernhammer 2020-05-04 19:17:13 +02:00 committed by GitHub
parent 9b3b04ecec
commit 145f501a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,