Skip to content

Commit a858dca

Browse files
committed
fix: correct subject format for certificate generation on Windows
1 parent c82db2c commit a858dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/gencert.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CERT_PATH="./test/fixtures/server.crt"
1010
SUBJ="/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
1111

1212
if [[ "$OS" == MINGW* || "$OS" == MSYS* ]]; then
13-
SUBJ="\/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
13+
SUBJ=/"/C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
1414
fi
1515

1616
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \

0 commit comments

Comments
 (0)