blob: ef49ecc6af59dfc2fa6668bbd6fcac5f35ad0c61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package testutil
import (
commonOpts "github.com/mongodb/mongo-tools/common/options"
)
func GetSSLOptions() commonOpts.SSL {
if HasTestType(SSLTestType) {
return commonOpts.SSL{
UseSSL: true,
SSLCAFile: "../common/db/openssl/testdata/ca.pem",
SSLPEMKeyFile: "../common/db/openssl/testdata/server.pem",
}
}
return commonOpts.SSL{
UseSSL: false,
}
}
|