From b3152e688735c359c53a0caeda813cc344089ab5 Mon Sep 17 00:00:00 2001 From: anastasia prasolova Date: Fri, 20 May 2022 19:38:25 +0300 Subject: [PATCH] [#177] Fixed hyphens in `generate_cert.sh` script Signed-off-by: anastasia prasolova --- services/nats/generate_cert.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/nats/generate_cert.sh b/services/nats/generate_cert.sh index a6e057c..120a79d 100755 --- a/services/nats/generate_cert.sh +++ b/services/nats/generate_cert.sh @@ -25,7 +25,7 @@ if [[ ! -f $CA_KEY || ! -f $CA_CRT ]]; then fi if [[ ! -f $SRV_KEY || ! -f $SRV_CRT ]]; then - OUT=$(openssl req -newkey rsa:4096 -nodes --keyout $SRV_KEY -out $SRV_REQ -subj $SUBJ 2>&1 ) || { + OUT=$(openssl req -newkey rsa:4096 -nodes -keyout $SRV_KEY -out $SRV_REQ -subj $SUBJ 2>&1 ) || { echo "Server certificate was not created" echo $OUT exit 1 @@ -43,7 +43,7 @@ if [[ ! -f $SRV_KEY || ! -f $SRV_CRT ]]; then fi if [[ ! -f $CLI_KEY || ! -f $CLI_CRT ]]; then - OUT=$(openssl req -newkey rsa:4096 -nodes --keyout $CLI_KEY -out $CLI_REQ -subj $SUBJ 2>&1) || { + OUT=$(openssl req -newkey rsa:4096 -nodes -keyout $CLI_KEY -out $CLI_REQ -subj $SUBJ 2>&1) || { echo "Client certificate was not created" echo $OUT exit 1