Skip to content

Commit a61672e

Browse files
committed
work?
1 parent fc02ad4 commit a61672e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/support/gencert.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#! /bin/sh
22
set -ex
33

4-
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \
5-
-subj "/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
4+
OS=$(uname)
5+
6+
if [ "$OS" = "Linux" ] || [ "$OS" = "Darwin" ]; then
7+
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \
8+
-subj "/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
9+
elif [ "$OS" = "MINGW64_NT" ] || [ "$OS" = "MINGW32_NT" ]; then
10+
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \
11+
-subj "//C=US//ST=Illinois//L=Chicago//O=node-express-session//CN=express-session.local"
12+
else
13+
echo "Unsupported OS: $OS"
14+
exit 1
15+
fi

0 commit comments

Comments
 (0)