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:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user