File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ Optional arguments
171171 -u OU Subject organizational unit (OU)
172172 -e Email Subject email (emailAddress)
173173 -a names Comma separated list of alt names (subjectAltName)
174+ -i ips Comma separated list of alt ip addresses (subjectAltName)
174175 -v Verbose output
175176
176177Required parameter
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ DEF_EMAIL=
2020
2121# v3 subject alt names
2222DEF_ALT_NAME=
23+ DEF_ALT_IP_NAME=
2324
2425# Verbosity
2526DEF_VERBOSE=
@@ -46,6 +47,7 @@ print_help() {
4647 echo " -u OU Subject organizational unit (OU)"
4748 echo " -e Email Subject email (emailAddress)"
4849 echo " -a names Comma separated list of alt names (subjectAltName)"
50+ echo " -i ips Comma separated list of alt ip addresses (subjectAltName)"
4951 echo " -v Verbose output"
5052 echo
5153 echo " Required parameter"
@@ -128,6 +130,11 @@ while [ ${#} -gt 0 ]; do
128130 DEF_ALT_NAME=" ${1} "
129131 shift
130132 ;;
133+ -i)
134+ shift
135+ DEF_ALT_IP_NAME=" ${1} "
136+ shift
137+ ;;
131138 # ---- Stop here
132139 --) # End of all options
133140 shift
@@ -215,6 +222,13 @@ if [ -n "${DEF_ALT_NAME}" ]; then
215222 done
216223fi
217224
225+ i=1
226+ if [ -n " ${DEF_ALT_IP_NAME} " ]; then
227+ for cn in ${DEF_ALT_IP_NAME// ,/ } ; do
228+ ALT_NAMES=" ${ALT_NAMES} ,IP.${i} :${cn} "
229+ done
230+ fi
231+
218232# ##
219233# ## Build commands
220234# ##
You can’t perform that action at this time.
0 commit comments