File tree 2 files changed +3
-2
lines changed
charts/selenium-grid/certs
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ TARGET_CERT_DIR=${TARGET_CERT_DIR:-"/usr/local/share/ca-certificates"} # Target
58
58
BUNDLE_CA_CERTS=${BUNDLE_CA_CERTS:- " /etc/ssl/certs/ca-certificates.crt" } # Bundle CA certificates
59
59
NSSDB_HOME=${NSSDB_HOME:- " ${HOME} /.pki/nssdb" } # Default location of the NSSDB
60
60
APPEND_CRT_KEY=" /tmp/tls.crt"
61
- ALIAS =${ALIAS :- " SeleniumHQ" }
61
+ ALIAS_PREFIX =${ALIAS_PREFIX :- " SeleniumHQ" }
62
62
63
63
sudo mkdir -p ${TARGET_CERT_DIR}
64
64
@@ -75,6 +75,7 @@ for cert_file in "${cert_files[@]}"; do
75
75
else
76
76
echo " Processing $cert_file "
77
77
fi
78
+ ALIAS=" ${ALIAS_PREFIX} _$( basename $cert_file ) "
78
79
cert_file=$( append_private_key_if_exists $cert_file )
79
80
for cert_db_file in " ${cert_db_files[@]} " ; do
80
81
echo " Adding to db: $cert_db_file "
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ docker build ${COMMON_BUILD_ARGS} --build-arg BASE=node-edge -t ${NAMESPACE}/nod
22
22
23
23
list_cert_files=($( find ./charts/selenium-grid/certs/ -name " *.crt" ) )
24
24
for cert_file_path in " ${list_cert_files[@]} " ; do
25
- cert_nick_name=" SeleniumHQ "
25
+ cert_nick_name=" SeleniumHQ_ $( basename $cert_file_path ) "
26
26
docker run --entrypoint=" " --rm ${NAMESPACE} /node-chrome:${VERSION} bash -c " certutil -L -d sql:/home/seluser/.pki/nssdb -n ${cert_nick_name} "
27
27
docker run --entrypoint=" " --rm ${NAMESPACE} /node-firefox:${VERSION} bash -c " certutil -L -d sql:/home/seluser/.pki/nssdb -n ${cert_nick_name} "
28
28
docker run --entrypoint=" " --rm ${NAMESPACE} /node-edge:${VERSION} bash -c " certutil -L -d sql:/home/seluser/.pki/nssdb -n ${cert_nick_name} "
You can’t perform that action at this time.
0 commit comments