diff options
Diffstat (limited to 'sms-service')
-rw-r--r-- | sms-service/src/sms/auth/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sms-service/src/sms/auth/auth.go b/sms-service/src/sms/auth/auth.go index ad5afdc..dc5c7bf 100644 --- a/sms-service/src/sms/auth/auth.go +++ b/sms-service/src/sms/auth/auth.go @@ -45,7 +45,8 @@ func GetTLSConfig(caCertFile string) (*tls.Config, error) { caCertPool.AppendCertsFromPEM(caCert) tlsConfig = &tls.Config{ - ClientAuth: tls.RequireAndVerifyClientCert, + // Change to RequireAndVerify once we have mandatory certs + ClientAuth: tls.VerifyClientCertIfGiven, ClientCAs: caCertPool, MinVersion: tls.VersionTLS12, } |