From d041be92cb29b4a3bc8dce2fef81402e10684e72 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 9 Mar 2015 23:14:19 +0100 Subject: [PATCH] allow spaces in subject. --- certgen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certgen.sh b/certgen.sh index 38c9a16..e8bea0e 100755 --- a/certgen.sh +++ b/certgen.sh @@ -43,7 +43,7 @@ while read cdline ; do # Handle non "CA" types here. export CA_PATH="$MYPWD/ca/" - SUBJECT="${certdata[2]}CN=${certdata[1]}/" + SUBJECT="$(echo -n "${certdata[2]}" | sed -e 's/_/ /g')CN=${certdata[1]}/" DNS_NAMES="${certdata[1]},${certdata[3]}" OLDIFS=$IFS IFS="," -- 2.43.0