Skip to content

Commit 06f194b

Browse files
author
=
committed
ignore self-signed
1 parent 4502b97 commit 06f194b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
shell: bash
1414
run: |
1515
./target/debug/cosock-test-server &
16-
sleep 1
1716
SERVER_PID=$!
17+
sleep 1
1818
curl http://127.0.0.1:8080/delay/3
1919
kill $SERVER_PID
2020
- name: install certs
@@ -27,15 +27,15 @@ jobs:
2727
-nodes \
2828
-out cert.pem \
2929
-keyout key.pem \
30-
-subj "/C=US/ST=MN/L=Minneapolis/O=cosock/" \
30+
-subj "/C=US/ST=MN/L=Minneapolis/O=cosock/CN=cosock/" \
3131
&& sudo cp cert.pem /usr/local/share/ca-certificates \
3232
&& sudo update-ca-certificates
3333
- name: run-with-tls
3434
run: |
3535
./target/debug/cosock-test-server 8443 . &
36-
sleep 1
3736
SERVER_PID=$!
38-
curl https://127.0.0.1:8443/delay/3
37+
sleep 1
38+
curl -k https://127.0.0.1:8443/delay/3 --cacert ./cert.pem
3939
EXIT_CODE=$?
4040
kill $SERVER_PID
4141
exit $EXIT_CODE

0 commit comments

Comments
 (0)