We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4503c54 commit d7fee47Copy full SHA for d7fee47
mongo/clientopt/clientopt.go
@@ -554,7 +554,7 @@ func SSL(ssl *SSLOpt) Option {
554
c.ConnString.SSL = ssl.Enabled
555
c.ConnString.SSLSet = true
556
}
557
- if !c.ConnString.SSLClientCertificateKeyFileSet {
+ if !c.ConnString.SSLClientCertificateKeyFileSet && ssl.ClientCertificateKeyFile != "" {
558
c.ConnString.SSLClientCertificateKeyFile = ssl.ClientCertificateKeyFile
559
c.ConnString.SSLClientCertificateKeyFileSet = true
560
0 commit comments