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:
386
386
${PREPARE_SHELL}
387
387
OS=${OS} \
388
388
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
389
396
MONGODB_URI="$ATLAS_X509_DEV" \
390
397
CLIENT_PEM=${DRIVERS_TOOLS}/CLIENT_CERT.pem \
391
- CLIENT_NO_USER_PEM=${DRIVERS_TOOLS}/CLIENT_NO_USER_CERT.pem \
392
398
TOPOLOGY=${TOPOLOGY} \
393
399
OS=${OS} \
394
400
FRAMEWORK=${FRAMEWORK} \
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ TOPOLOGY=${TOPOLOGY:-server}
29
29
COMPRESSOR=${COMPRESSOR:- none}
30
30
OCSP_TLS_SHOULD_SUCCEED=${OCSP_TLS_SHOULD_SUCCEED:- nil}
31
31
CLIENT_PEM=${CLIENT_PEM:- nil}
32
- CLIENT_NO_USER_PEM=${CLIENT_NO_USER_PEM:- nil}
33
32
PLATFORM=${PLATFORM:- nil}
34
33
TARGET=${TARGET:- Test}
35
34
FRAMEWORK=${FRAMEWORK:- nil}
@@ -134,16 +133,6 @@ if [[ "$CLIENT_PEM" != "nil" ]]; then
134
133
CLIENT_PEM=${CLIENT_PEM} source evergreen/convert-client-cert-to-pkcs12.sh
135
134
fi
136
135
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
-
147
136
if [[ -z " $MONGO_X509_CLIENT_CERTIFICATE_PATH " && -z " $MONGO_X509_CLIENT_CERTIFICATE_PASSWORD " ]]; then
148
137
# technically the above condiion will be always true since CLIENT_PEM is always set and
149
138
# 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