nodejs-self-signed-certific.../test.sh

31 lines
600 B
Bash
Raw Normal View History

#!/bin/bash
bash make-root-ca-and-certificates.sh 'local.ldsconnect.org'
2014-07-15 03:38:33 +00:00
echo ""
echo ""
node ./serve.js 8043 &
NODE_PID=$!
sleep 1
2014-07-15 03:38:33 +00:00
echo ""
echo ""
node ./request-without-warnings.js 8043 'local.ldsconnect.org'
echo -n " - without warnings, love node.js' https"
echo ""
sleep 1
echo ""
curl https://local.ldsconnect.org:8043 \
--cacert certs/client/my-root-ca.crt.pem
2014-07-15 03:38:33 +00:00
echo -n " - without warnings, love cURL"
echo ""
sleep 1
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 \
# --cacert certs/client/my-root-ca.crt.pem
2014-07-15 03:38:33 +00:00
kill ${NODE_PID}
echo ""