[#177] Fixed hyphens in `generate_cert.sh` script

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
nightly
anastasia prasolova 2022-05-20 19:38:25 +03:00 committed by Alex Vanin
parent c28d105a8f
commit b3152e6887
1 changed files with 2 additions and 2 deletions

View File

@ -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