File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -427,8 +427,11 @@ func (p *Provider) fetchCertificate(ctx context.Context) (time.Time, error) {
427427 p .tlsConfig = & tls.Config {
428428 MinVersion : tls .VersionTLS12 ,
429429 Certificates : []tls.Certificate {tlsCert },
430- ClientAuth : tls .VerifyClientCertIfGiven ,
431- ClientCAs : peerCertVerifier .GetGeneralCertPool (),
430+ // Advertise ALPN, required in modern gRPC versions
431+ // Typically gRPC sets this for us, but since this tls.Config ultimately gets returned in GetConfigForClient it doesn't.
432+ NextProtos : []string {"h2" },
433+ ClientAuth : tls .VerifyClientCertIfGiven ,
434+ ClientCAs : peerCertVerifier .GetGeneralCertPool (),
432435 VerifyPeerCertificate : func (rawCerts [][]byte , verifiedChains [][]* x509.Certificate ) error {
433436 err := peerCertVerifier .VerifyPeerCert (rawCerts , verifiedChains )
434437 if err != nil {
You can’t perform that action at this time.
0 commit comments