Browse Source

use letsencrypt naming convention, and more recent localhost.daplie.com

master
AJ ONeal 8 years ago
committed by GitHub
parent
commit
ae34b4ef56
  1. 10
      test.sh

10
test.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
bash make-root-ca-and-certificates.sh 'local.ldsconnect.org' bash make-root-ca-and-certificates.sh 'localhost.daplie.com'
echo "" echo ""
echo "" echo ""
@ -10,21 +10,21 @@ sleep 1
echo "" echo ""
echo "" echo ""
node ./request-without-warnings.js 8043 'local.ldsconnect.org' node ./request-without-warnings.js 8043 'localhost.daplie.com'
echo -n " - without warnings, love node.js' https" echo -n " - without warnings, love node.js' https"
echo "" echo ""
sleep 1 sleep 1
echo "" echo ""
curl https://local.ldsconnect.org:8043 \ curl https://localhost.daplie.com:8043 \
--cacert certs/client/my-root-ca.crt.pem --cacert certs/client/chain.pem
echo -n " - without warnings, love cURL" echo -n " - without warnings, love cURL"
echo "" echo ""
sleep 1 sleep 1
# For lots of output about the ssl connection try -v # For lots of output about the ssl connection try -v
#curl -v https://local.ldsconnect.org:8043 \ #curl -v https://local.ldsconnect.org:8043 \
# --cacert certs/client/my-root-ca.crt.pem # --cacert certs/client/chain.pem
kill ${NODE_PID} kill ${NODE_PID}
echo "" echo ""

Loading…
Cancel
Save