#This just shows how to use the scripts in this directory
#cleanup the directory of the certificates, directories etc. created.

echo "cleanup the already installed certs"
bash certinstall.sh -c remove -n purpleguard

rm -rf root
echo "create a certificate authority"
bash newca.sh -n purpleguard -d localhost
echo "install the certificate authority appropriate for the OS"
bash certinstall.sh -c install -n purpleguard
echo "domain specific certificate called client certificate"
bash clientcert.sh -n purpleguard -d localhost -o keymgr

bash clientcert.sh -n purpleguard -d localhost -o workflow


echo "to test this you need to run node wstest.js"
echo "bash test.sh calls the url with https that's provided by wstest.js"
