mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 04:22:11 +00:00
tweaking
This commit is contained in:
parent
7e6637847d
commit
0862fdf6bb
1 changed files with 11 additions and 11 deletions
|
@ -458,17 +458,17 @@ tput civis
|
||||||
|
|
||||||
# Let's generate a SSL self-signed certificate without interaction (browsers will see it invalid anyway)
|
# Let's generate a SSL self-signed certificate without interaction (browsers will see it invalid anyway)
|
||||||
if ! [ "$myCONF_TPOT_FLAVOR" == "SENSOR" ];
|
if ! [ "$myCONF_TPOT_FLAVOR" == "SENSOR" ];
|
||||||
then
|
then
|
||||||
mkdir -p /data/nginx/cert 2>&1 | dialog --title "[ Generating a self-signed-certificate for NGINX ]" $myPROGRESSBOXCONF;
|
mkdir -p /data/nginx/cert 2>&1 | dialog --title "[ Generating a self-signed-certificate for NGINX ]" $myPROGRESSBOXCONF;
|
||||||
openssl req \
|
openssl req \
|
||||||
-nodes \
|
-nodes \
|
||||||
-x509 \
|
-x509 \
|
||||||
-sha512 \
|
-sha512 \
|
||||||
-newkey rsa:8192 \
|
-newkey rsa:8192 \
|
||||||
-keyout "/data/nginx/cert/nginx.key" \
|
-keyout "/data/nginx/cert/nginx.key" \
|
||||||
-out "/data/nginx/cert/nginx.crt" \
|
-out "/data/nginx/cert/nginx.crt" \
|
||||||
-days 3650 \
|
-days 3650 \
|
||||||
-subj '/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd' 2>&1 | dialog --title "[ Generating a self-signed-certificate for NGINX ]" $myPROGRESSBOXCONF;
|
-subj '/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd' 2>&1 | dialog --title "[ Generating a self-signed-certificate for NGINX ]" $myPROGRESSBOXCONF;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Let's setup the ntp server
|
# Let's setup the ntp server
|
||||||
|
|
Loading…
Reference in a new issue