From 2c1da339701ddb7e92f857175934b718f54d5a3d Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sat, 7 Aug 2021 20:16:17 -0500 Subject: [PATCH] make-ca: Special case for poorly named 'NetLock Arany' certs. --- make-ca | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make-ca b/make-ca index 0e021da..7b145aa 100644 --- a/make-ca +++ b/make-ca @@ -470,6 +470,9 @@ function get_p11_label() { p11label="$(echo ${subjectline} | grep -o "CN=.*$" | cut -d '=' -f 2 | \ 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 ## Special case for GlobalSign certs if [ "${p11label}" == "" -o "${p11label}" == "GlobalSign" ]; then