File tree Expand file tree Collapse file tree 3 files changed +16
-24
lines changed Expand file tree Collapse file tree 3 files changed +16
-24
lines changed Original file line number Diff line number Diff line change 3
3
set -o xtrace # Write all commands first to stderr
4
4
set -o errexit # Exit the script with an error if any of the commands fail
5
5
6
+ # Supported/used environment variables:
7
+ # SSL Set to enable SSL. Values are "ssl" / "nossl" (default)
8
+ # OCSP_TLS_SHOULD_SUCCEED Set to test OCSP. Values are true/false/nil
9
+ # OCSP_ALGORITHM Set to test OCSP. Values are rsa/ecdsa/nil
10
+
11
+ SSL=${SSL:- nossl}
6
12
OCSP_TLS_SHOULD_SUCCEED=${OCSP_TLS_SHOULD_SUCCEED:- nil}
7
13
OCSP_ALGORITHM=${OCSP_ALGORITHM:- nil}
8
14
15
+ if [[ " $SSL " != " ssl" ]]; then
16
+ exit 0
17
+ fi
18
+
9
19
if [[ " $OS " =~ Windows| windows ]]; then
10
20
certutil.exe -addstore " Root" ${DRIVERS_TOOLS} /.evergreen/x509gen/ca.pem
11
21
12
- if [ " $OCSP_TLS_SHOULD_SUCCEED " != " nil" ] && [ " $OCSP_ALGORITHM " != " nil" ]; then
22
+ if [[ " $OCSP_TLS_SHOULD_SUCCEED " != " nil" && " $OCSP_ALGORITHM " != " nil" ] ]; then
13
23
certutil.exe -addstore " Root" ${DRIVERS_TOOLS} /.evergreen/ocsp/${OCSP_ALGORITHM} /ca.pem
14
24
fi
15
25
fi
Original file line number Diff line number Diff line change @@ -239,9 +239,9 @@ functions:
239
239
export FLE_AWS_ACCESS_KEY_ID=${FLE_AWS_ACCESS_KEY_ID}
240
240
export FLE_AWS_SECRET_ACCESS_KEY=${FLE_AWS_SECRET_ACCESS_KEY}
241
241
${PREPARE_SHELL}
242
- evergreen/add-certs.sh
242
+ SSL=${SSL} evergreen/add-certs-if-needed .sh
243
243
AUTH=${AUTH} SSL=${SSL} MONGODB_URI="${MONGODB_URI}" TOPOLOGY=${TOPOLOGY} OS=${OS} COMPRESSOR=${COMPRESSOR} evergreen/run-tests.sh
244
- evergreen/remove-certs.sh
244
+ echo "Skipping certificate removal..."
245
245
246
246
run-atlas-connectivity-tests :
247
247
- command : shell.exec
@@ -417,15 +417,16 @@ functions:
417
417
${PREPARE_SHELL}
418
418
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
419
419
OCSP_ALGORITHM=${OCSP_ALGORITHM} \
420
- evergreen/add-certs.sh
420
+ SSL="ssl" \
421
+ evergreen/add-certs-if-needed.sh
421
422
set +o xtrace
422
423
AUTH="${AUTH}" \
423
424
SSL="ssl" \
424
425
TOPOLOGY="${TOPOLOGY}" \
425
426
MONGODB_URI="${MONGODB_URI}" \
426
427
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \
427
428
evergreen/run-tests.sh
428
- evergreen/remove-certs.sh
429
+ echo "Skipping certificate removal..."
429
430
430
431
run-valid-ocsp-server-ca-responder :
431
432
- command : shell.exec
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments