[ssl_mgmt] Comment out extensions with empty value
This commit is contained in:
parent
0f52180d60
commit
1035fb13ac
|
@ -210,6 +210,7 @@ generate_config ()
|
|||
replaceCmd="$(add_to_replace_cmd "$replaceCmd" "@COUNTRY@" "${country:-}")"
|
||||
replaceCmd="$(add_to_replace_cmd "$replaceCmd" "@COMMONNAME@" "${commonName:-}")"
|
||||
replaceCmd="$(add_to_replace_cmd "$replaceCmd" "@ALTNAME@" "${altName:-}")"
|
||||
replaceCmd="$replaceCmd${replaceCmd:+;}s/\(.*=[[:blank:]]*\$\)/#\\1/"
|
||||
cnfTmpFile="$(mktemp --tmpdir=. openssl.cnf.XXXXXXXXXX)"
|
||||
sed "$replaceCmd" $confFile.in > $cnfTmpFile
|
||||
if ask_user_default_no "Do you want to edit the openssl configuration file?"
|
||||
|
|
Loading…
Reference in New Issue