File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -o errexit # Exit the script with an error if any of the commands fail
6
6
# CLIENT_PEM Path to mongo client.pem: must be set
7
7
# P12_FILENAME Filename for client certificate in p12 format
8
8
# P12_PASSWORD Password for client certificate in p12 format
9
- # FRIENDLY_NAME Friendly name for client certificate in p12 format
9
+ # P12_FRIENDLY_NAME Friendly name for client certificate in p12 format
10
10
# OUT_CLIENT_PATH_VAR Name of the output variable containing the path of the p12 certificate
11
11
# OUT_CLIENT_PASSWORD_VAR Name of the output variable containing the password for the p12 certificate
12
12
#
@@ -17,7 +17,7 @@ set -o errexit # Exit the script with an error if any of the commands fail
17
17
18
18
# Input environment variables and default values
19
19
: " ${CLIENT_PEM:= nil} "
20
- : " ${FRIENDLY_NAME := " Drivers Client Certificate" } "
20
+ : " ${P12_FRIENDLY_NAME := " Drivers Client Certificate" } "
21
21
: " ${P12_FILENAME:= " client.p12" } "
22
22
: " ${P12_PASSWORD:= " Picard-Alpha-Alpha-3-0-5" } "
23
23
: " ${OUT_CLIENT_PATH_VAR:= " MONGO_X509_CLIENT_CERTIFICATE_PATH" } "
30
30
31
31
openssl pkcs12 -export -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -macalg sha1 -in " ${CLIENT_PEM} " \
32
32
-out " ${P12_FILENAME} " \
33
- -name " ${FRIENDLY_NAME } " \
33
+ -name " ${P12_FRIENDLY_NAME } " \
34
34
-password " pass:${P12_PASSWORD} "
35
35
36
36
# Determine path using realpath (compatible across macOS, Linux, and Windows)
Original file line number Diff line number Diff line change @@ -1055,7 +1055,7 @@ functions:
1055
1055
${PREPARE_SHELL}
1056
1056
OS=${OS} \
1057
1057
evergreen/add-ca-certs.sh
1058
- FRIENDLY_NAME ="Drivers No-User Client Certificate" \
1058
+ P12_FRIENDLY_NAME ="Drivers No-User Client Certificate" \
1059
1059
P12_FILENAME="client_no_user.p12" \
1060
1060
OUT_CLIENT_PASSWORD_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PASSWORD" \
1061
1061
OUT_CLIENT_PATH_VAR="MONGO_X509_CLIENT_NO_USER_CERTIFICATE_PATH" \
You can’t perform that action at this time.
0 commit comments