Install our custom CA to the system trust store
This will only work on certain ubuntu versions
@@ -22,8 +22,13 @@ fi
if [ "$SSL" != "nossl" ]; then
export MONGOC_TEST_SSL_WEAK_CERT_VALIDATION="on"
export MONGOC_TEST_SSL_PEM_FILE="tests/x509gen/client.pem"
+ sudo cp tests/x509gen/ca.pem /usr/local/share/ca-certificates/cdriver.crt || true
+ if [ -f /usr/local/share/ca-certificates/cdriver.crt ]; then
+ sudo update-ca-certificates
+ else
export MONGOC_TEST_SSL_CA_FILE="tests/x509gen/ca.pem"
fi
+fi
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
