2015-07-08 00:43:46 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
node serve.js \
|
|
|
|
|
--port 8443 \
|
2017-02-01 15:47:08 -07:00
|
|
|
--key node_modules/localhost.daplie.me-certificates/privkey.pem \
|
|
|
|
|
--cert node_modules/localhost.daplie.me-certificates/fullchain.pem \
|
|
|
|
|
--root node_modules/localhost.daplie.me-certificates/root.pem \
|
|
|
|
|
-c "$(cat node_modules/localhost.daplie.me-certificates/root.pem)" &
|
2015-07-08 00:43:46 -06:00
|
|
|
|
|
|
|
|
PID=$!
|
|
|
|
|
|
|
|
|
|
sleep 1
|
2017-02-01 15:47:08 -07:00
|
|
|
curl -s --insecure http://localhost.daplie.me:8443 > ./root.pem
|
|
|
|
|
curl -s https://localhost.daplie.me:8443 --cacert ./root.pem
|
2015-07-08 00:43:46 -06:00
|
|
|
|
|
|
|
|
rm ./root.pem
|
|
|
|
|
kill $PID 2>/dev/null
|