File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,15 @@ functions:
386386 ${PREPARE_SHELL}
387387 OS=${OS} \
388388 evergreen/add-ca-certs.sh
389+ CLIENT_PEM_VAR_NAME="CLIENT_NO_USER_PEM" \
390+ FRIENDLY_NAME="Drivers No-User Client Certificate" \
391+ P12_FILENAME="client_no_user.p12" \
392+ OUT_CLIENT_PASSWORD_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PASSWORD" \
393+ OUT_CLIENT_PATH_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PATH" \
394+ CLIENT_NO_USER_PEM=${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem \
395+ source evergreen/convert-client-cert-to-pkcs12.sh
389396 MONGODB_URI="$ATLAS_X509_DEV" \
390397 CLIENT_PEM=${DRIVERS_TOOLS}/CLIENT_CERT.pem \
391- CLIENT_NO_USER_PEM=${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem \
392398 TOPOLOGY=${TOPOLOGY} \
393399 OS=${OS} \
394400 FRAMEWORK=${FRAMEWORK} \
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ TOPOLOGY=${TOPOLOGY:-server}
2929COMPRESSOR=${COMPRESSOR:- none}
3030OCSP_TLS_SHOULD_SUCCEED=${OCSP_TLS_SHOULD_SUCCEED:- nil}
3131CLIENT_PEM=${CLIENT_PEM:- nil}
32- CLIENT_NO_USER_PEM=${CLIENT_NO_USER_PEM:- nil}
3332PLATFORM=${PLATFORM:- nil}
3433TARGET=${TARGET:- Test}
3534FRAMEWORK=${FRAMEWORK:- nil}
@@ -134,16 +133,6 @@ if [[ "$CLIENT_PEM" != "nil" ]]; then
134133 CLIENT_PEM=${CLIENT_PEM} source evergreen/convert-client-cert-to-pkcs12.sh
135134fi
136135
137- # TODO need to remove this from here
138- if [[ " $CLIENT_NO_USER_PEM " != " nil" ]]; then
139- export CLIENT_PEM_VAR_NAME=" CLIENT_NO_USER_PEM"
140- export FRIENDLY_NAME=" Drivers No-User Client Certificate"
141- export P12_FILENAME=" client_no_user.p12"
142- export OUT_CLIENT_PASSWORD_VAR=" MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PASSWORD"
143- export OUT_CLIENT_PATH_VAR=" MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PATH"
144- CLIENT_NO_USER_PEM=${CLIENT_NO_USER_PEM} source evergreen/convert-client-cert-to-pkcs12.sh
145- fi
146-
147136if [[ -z " $MONGO_X509_CLIENT_CERTIFICATE_PATH " && -z " $MONGO_X509_CLIENT_CERTIFICATE_PASSWORD " ]]; then
148137 # technically the above condiion will be always true since CLIENT_PEM is always set and
149138 # convert-client-cert-to-pkcs12 always assigns these env variables, but leaving this condition in case
You can’t perform that action at this time.
0 commit comments