summarylogtreecommitdiffstats
path: root/san-ip.patch
diff options
context:
space:
mode:
Diffstat (limited to 'san-ip.patch')
-rw-r--r--san-ip.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/san-ip.patch b/san-ip.patch
new file mode 100644
index 000000000000..f12bbd60d2ec
--- /dev/null
+++ b/san-ip.patch
@@ -0,0 +1,21 @@
+--- a/csr 2018-08-23 23:44:33.000000000 +0200
++++ b/csr 2023-02-17 12:39:38.186297609 +0100
+@@ -66,6 +66,18 @@ while [ ! "$SAN" = "" ]; do
+ SANAMES="$SANAMES,DNS:$SAN"
+ fi
+ done
++SAN=1 # bogus value to begin the loop
++SANAMES="" # sanitize
++while [ ! "$SAN" = "" ]; do
++ printf "SubjectAltName: IP:"
++ read SAN
++ if [ "$SAN" = "" ]; then break; fi # end of input
++ if [ "$SANAMES" = "" ]; then
++ SANAMES="IP:$SAN"
++ else
++ SANAMES="$SANAMES,IP:$SAN"
++ fi
++done
+
+ # Config File Generation
+