make-ca: Special case for poorly named 'NetLock Arany' certs.

This commit is contained in:
DJ Lucas 2021-08-07 20:16:17 -05:00
parent 6e7e5a391c
commit 2c1da33970

View File

@ -470,6 +470,9 @@ function get_p11_label() {
p11label="$(echo ${subjectline} | grep -o "CN=.*$" | cut -d '=' -f 2 | \ p11label="$(echo ${subjectline} | grep -o "CN=.*$" | cut -d '=' -f 2 | \
sed -e 's@[A-Z]*$@@g' -e 's@, $@@' -e 's@"@@g' -e 's@,@@g')" sed -e 's@[A-Z]*$@@g' -e 's@, $@@' -e 's@"@@g' -e 's@,@@g')"
# Special case for NetLock Arany certs
echo ${p11label} | grep -q "^NetLock" && p11label="NetLock Arany - Class Gold"
# Fallback to the last OU value if CN does not exeist in Subject string # Fallback to the last OU value if CN does not exeist in Subject string
## Special case for GlobalSign certs ## Special case for GlobalSign certs
if [ "${p11label}" == "" -o "${p11label}" == "GlobalSign" ]; then if [ "${p11label}" == "" -o "${p11label}" == "GlobalSign" ]; then