mirror of
https://github.com/vee1e/kubeedge.git
synced 2026-09-01 18:27:38 +00:00
admissioncontroller: set minimum TLS version to 1.2 in configTLS
Signed-off-by: tushar743-ui <tusharpatle743@gmail.com>
This commit is contained in:
parent
f604fb529f
commit
172dffbde3
1 changed files with 2 additions and 0 deletions
|
|
@ -135,6 +135,7 @@ func configTLS(opt *options.AdmissionOptions, restConfig *restclient.Config) (*t
|
|||
|
||||
return &tls.Config{
|
||||
Certificates: []tls.Certificate{sCert},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
@ -146,6 +147,7 @@ func configTLS(opt *options.AdmissionOptions, restConfig *restclient.Config) (*t
|
|||
|
||||
return &tls.Config{
|
||||
Certificates: []tls.Certificate{sCert},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
}, nil
|
||||
}
|
||||
return nil, errors.New("tls: failed to find any tls config data")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue