The end off all your self-sign certificate woes (in node.js at least)
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

30 righe
604 B

#!/bin/bash
bash make-root-ca-and-certificates.sh 'local.ldsconnect.org'
echo ""
echo ""
node ./serve.js 8043 &
NODE_PID=$!
sleep 1
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 client/my-private-root-ca.crt.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 client/my-private-root-ca.crt.pem
kill ${NODE_PID}
echo ""