2014-07-15 03:20:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-06-28 00:03:32 +00:00
|
|
|
bash make-root-ca-and-certificates.sh 'localhost.daplie.com'
|
2014-07-15 03:38:33 +00:00
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
node ./serve.js 8043 &
|
|
|
|
NODE_PID=$!
|
|
|
|
sleep 1
|
2014-07-15 03:20:49 +00:00
|
|
|
|
2014-07-15 03:38:33 +00:00
|
|
|
echo ""
|
|
|
|
echo ""
|
2016-06-28 00:03:32 +00:00
|
|
|
node ./request-without-warnings.js 8043 'localhost.daplie.com'
|
2014-07-15 03:38:33 +00:00
|
|
|
echo -n " - without warnings, love node.js' https"
|
|
|
|
echo ""
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
echo ""
|
2016-06-28 00:03:32 +00:00
|
|
|
curl https://localhost.daplie.com:8043 \
|
|
|
|
--cacert certs/client/chain.pem
|
2014-07-15 03:38:33 +00:00
|
|
|
echo -n " - without warnings, love cURL"
|
|
|
|
echo ""
|
|
|
|
sleep 1
|
2014-07-15 03:20:49 +00:00
|
|
|
|
2014-07-15 03:38:33 +00:00
|
|
|
# For lots of output about the ssl connection try -v
|
|
|
|
#curl -v https://local.ldsconnect.org:8043 \
|
2016-06-28 00:03:32 +00:00
|
|
|
# --cacert certs/client/chain.pem
|
2014-07-15 03:20:49 +00:00
|
|
|
|
2014-07-15 03:38:33 +00:00
|
|
|
kill ${NODE_PID}
|
2014-07-15 03:20:49 +00:00
|
|
|
echo ""
|