mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-04 14:25:35 -04:00
parent
46ecb9a660
commit
fda9473681
3 changed files with 4 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ func listenerWrapTLS(
|
|||
|
||||
tlsConf := &tls.Config{}
|
||||
tlsConf.GetCertificate = cg.getCertificate
|
||||
tlsConf.NextProtos = []string{"http/1.1"}
|
||||
tlsConf.NextProtos = []string{"h2", "http/1.1"}
|
||||
tlsConf.MinVersion, ok = tlsutil.TLSLookup[tlsvers]
|
||||
if !ok {
|
||||
return nil, nil, nil, fmt.Errorf("'tls_min_version' value %s not supported, please specify one of [tls10,tls11,tls12]", tlsvers)
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ func ParsePEMBundle(pemBundle string) (*ParsedCertBundle, error) {
|
|||
return nil, UserError{"empty pem bundle"}
|
||||
}
|
||||
|
||||
pemBundle = strings.TrimSpace(pemBundle)
|
||||
|
||||
pemBytes := []byte(pemBundle)
|
||||
var pemBlock *pem.Block
|
||||
parsedBundle := &ParsedCertBundle{}
|
||||
|
|
|
|||
|
|
@ -437,7 +437,7 @@ func (p *ParsedCertBundle) GetTLSConfig(usage TLSUsage) (*tls.Config, error) {
|
|||
}
|
||||
|
||||
tlsConfig := &tls.Config{
|
||||
NextProtos: []string{"http/1.1"},
|
||||
NextProtos: []string{"h2", "http/1.1"},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue