diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..033b246 --- /dev/null +++ b/setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +echo "cloning repo" +git clone https://github.com/keyfactor/Keyfactor-CAgent -b tedge-demo + +echo "installing dependencies, please provide password as necessary" +sudo apt update +sudo apt install -y build-essential git libcurl4-gnutls-dev curl libssl-dev + +echo "creating /home/keyfactor folder structure" +sudo mkdir /home/keyfactor +sudo mkdir /home/keyfactor/Keyfactor-CAgent +sudo mkdir /home/keyfactor/Keyfactor-CAgent/certs +sudo chown -R $(whoami):$(whoami) /home/keyfactor +touch /home/keyfactor/Keyfactor-CAgent/certs/trust.store + +echo "building agent" +cd Keyfactor-CAgent +make clean +make opentest + +echo "run ./agent to continue"