From 756215519c41a824bda7fedf9eb1baaf70c62a62 Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Fri, 27 Dec 2019 14:53:07 +0000 Subject: [PATCH] add sAN to selfsigned cert fixes #478 --- iso/installer/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iso/installer/install.sh b/iso/installer/install.sh index 2bc9074f..44c159fb 100755 --- a/iso/installer/install.sh +++ b/iso/installer/install.sh @@ -643,6 +643,7 @@ fi if ! [ "$myCONF_TPOT_FLAVOR" == "SENSOR" ]; then fuBANNER "NGINX Certificate" + myINTIP=$(hostname -I | awk '{ print $1 }') mkdir -p /data/nginx/cert openssl req \ -nodes \ @@ -653,6 +654,7 @@ then -out "/data/nginx/cert/nginx.crt" \ -days 3650 \ -subj '/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd' + -addext "subjectAltName = IP:$myINTIP" fi # Let's setup the ntp server