Skip to content

Commit d414523

Browse files
committed
CDRIVER-2153 Install our custom CA to the system trust store
This will only work on certain ubuntu versions
1 parent 5b8233a commit d414523

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen/run-tests.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ fi
1818
if [ "$SSL" != "nossl" ]; then
1919
export MONGOC_TEST_SSL_WEAK_CERT_VALIDATION="on"
2020
export MONGOC_TEST_SSL_PEM_FILE="tests/x509gen/client.pem"
21-
export MONGOC_TEST_SSL_CA_FILE="tests/x509gen/ca.pem"
21+
sudo cp tests/x509gen/ca.pem /usr/local/share/ca-certificates/cdriver.crt || true
22+
if [ -f /usr/local/share/ca-certificates/cdriver.crt ]; then
23+
sudo update-ca-certificates
24+
else
25+
export MONGOC_TEST_SSL_CA_FILE="tests/x509gen/ca.pem"
26+
fi
2227
fi
2328

2429
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on

0 commit comments

Comments
 (0)