Secrets: Remove proxy certs (#110140)
This commit is contained in:
@@ -34,8 +34,6 @@ var _ contracts.DecryptService = &GRPCDecryptClient{}
|
||||
|
||||
type TLSConfig struct {
|
||||
UseTLS bool
|
||||
CertFile string
|
||||
KeyFile string
|
||||
CAFile string
|
||||
ServerName string
|
||||
InsecureSkipVerify bool
|
||||
@@ -91,14 +89,6 @@ func createTLSCredentials(config TLSConfig) (credentials.TransportCredentials, e
|
||||
tlsConfig.RootCAs = caCertPool
|
||||
}
|
||||
|
||||
if config.CertFile != "" && config.KeyFile != "" {
|
||||
cert, err := tls.LoadX509KeyPair(config.CertFile, config.KeyFile)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to load client certificate: %w", err)
|
||||
}
|
||||
tlsConfig.Certificates = []tls.Certificate{cert}
|
||||
}
|
||||
|
||||
if config.ServerName != "" {
|
||||
tlsConfig.ServerName = config.ServerName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user