summarylogtreecommitdiffstats
path: root/san-ip.patch
diff options
context:
space:
mode:
authorChristian Hesse2023-02-17 12:57:05 +0100
committerChristian Hesse2023-02-17 12:57:05 +0100
commit20ead876e27435ea47e742948bfaf03c6d1b68e9 (patch)
tree68017593519e5097a819d3dd86aea00ae50c061b /san-ip.patch
parent74ab0467df643c209711845019091b22ef74994a (diff)
downloadaur-20ead876e27435ea47e742948bfaf03c6d1b68e9.tar.gz
commit cacert-csr 0.1-3
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
+