The end off all your self-sign certificate woes (in node.js at least)
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

31 lignes
604 B

#!/bin/bash
bash make-root-ca-and-certificates.sh 'local.ldsconnect.org'
il y a 10 ans
echo ""
echo ""
node ./serve.js 8043 &
NODE_PID=$!
sleep 1
il y a 10 ans
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
il y a 10 ans
# 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
il y a 10 ans
kill ${NODE_PID}
echo ""