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 ac85d3e commit 6ea632fCopy full SHA for 6ea632f
mongo/clientopt/clientopt.go
@@ -627,7 +627,7 @@ func SSL(ssl *SSLOpt) Option {
627
c.ConnString.SSLInsecure = ssl.Insecure
628
c.ConnString.SSLInsecureSet = true
629
}
630
- if !c.ConnString.SSLCaFileSet {
+ if !c.ConnString.SSLCaFileSet && ssl.CaFile != "" {
631
c.ConnString.SSLCaFile = ssl.CaFile
632
c.ConnString.SSLCaFileSet = true
633
0 commit comments