Solved openssl error, but no output at all right now so it's hard to tell if the script works

This commit is contained in:
2025-12-07 14:47:36 +02:00
parent 0ad12b0642
commit b930088307
4 changed files with 5 additions and 3 deletions

View File

@@ -8,8 +8,8 @@
mkdir -p ssl # Use -p to avoid error if the directory exists
cd ssl
if [ ! -f ./openssl.cnf ]; then
echo "Creating openssl..."
openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.cert -days 365 -nodes -config ../openssl.cnf 1&2 > /dev/null
echo "Creating certificates..."
openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.cert -days 365 -nodes -config ../openssl.cnf > /dev/null 2>/dev/null
exit 1
fi
'';