You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 rivejä
582 B
30 rivejä
582 B
#!/bin/bash
|
|
|
|
bash make-root-ca-and-certificates.sh 'localhost.daplie.com'
|
|
echo ""
|
|
|
|
echo ""
|
|
node ./serve.js 8043 &
|
|
NODE_PID=$!
|
|
sleep 1
|
|
|
|
echo ""
|
|
echo ""
|
|
node ./request-without-warnings.js 8043 'localhost.daplie.com'
|
|
echo -n " - without warnings, love node.js' https"
|
|
echo ""
|
|
sleep 1
|
|
|
|
echo ""
|
|
curl https://localhost.daplie.com:8043 \
|
|
--cacert certs/client/chain.pem
|
|
echo -n " - without warnings, love cURL"
|
|
echo ""
|
|
sleep 1
|
|
|
|
# For lots of output about the ssl connection try -v
|
|
#curl -v https://local.ldsconnect.org:8043 \
|
|
# --cacert certs/client/chain.pem
|
|
|
|
kill ${NODE_PID}
|
|
echo ""
|
|
|