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.
2 parents 3e6d365 + d7fee47 commit 44fa48dCopy full SHA for 44fa48d
mongo/clientopt/clientopt.go
@@ -587,7 +587,7 @@ func SSL(ssl *SSLOpt) Option {
587
c.ConnString.SSL = ssl.Enabled
588
c.ConnString.SSLSet = true
589
}
590
- if !c.ConnString.SSLClientCertificateKeyFileSet {
+ if !c.ConnString.SSLClientCertificateKeyFileSet && ssl.ClientCertificateKeyFile != "" {
591
c.ConnString.SSLClientCertificateKeyFile = ssl.ClientCertificateKeyFile
592
c.ConnString.SSLClientCertificateKeyFileSet = true
593
0 commit comments