File tree 1 file changed +3
-2
lines changed
pkg/server/plugin/keymanager/hashicorpvault
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,12 @@ func (c *ClientConfig) configureTLS(vc *vapi.Config) error {
253
253
254
254
switch {
255
255
case c .clientParams .ClientCertPath != "" && c .clientParams .ClientKeyPath != "" :
256
- c , err := tls .LoadX509KeyPair (c .clientParams .ClientCertPath , c .clientParams .ClientKeyPath )
256
+ var err error
257
+
258
+ clientCert , err = tls .LoadX509KeyPair (c .clientParams .ClientCertPath , c .clientParams .ClientKeyPath )
257
259
if err != nil {
258
260
return status .Errorf (codes .InvalidArgument , "failed to parse client cert and private-key: %v" , err )
259
261
}
260
- clientCert = c
261
262
foundClientCert = true
262
263
case c .clientParams .ClientCertPath != "" || c .clientParams .ClientKeyPath != "" :
263
264
return status .Error (codes .InvalidArgument , "both client cert and client key are required" )
You can’t perform that action at this time.
0 commit comments