remove openssl from nm-quick

Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
This commit is contained in:
Matthew R. Kasun 2022-04-18 18:26:42 -04:00
parent 2b1f20e94b
commit 31b3dfec14

View file

@ -50,7 +50,7 @@ elif [ -f /etc/fedora-release ]; then
dnf update
fi
dependencies=( "docker.io" "docker-compose" "wireguard" "jq" "openssl" )
dependencies=( "docker.io" "docker-compose" "wireguard" "jq" )
for dependency in ${dependencies[@]}; do
is_installed=$(dpkg-query -W --showformat='${Status}\n' ${dependency} | grep "install ok installed")
@ -137,18 +137,6 @@ echo "setting mosquitto.conf..."
wget -q -O /root/mosquitto.conf https://raw.githubusercontent.com/gravitl/netmaker/master/docker/mosquitto.conf
echo "creating certificates for mosquitto"
server=$( echo "/CN=broker."$NETMAKER_BASE_DOMAIN)
mkdir certs
openssl genpkey -algorithm Ed25519 -out certs/root.key
openssl req -new -key certs/root.key -out certs/root.csr -subj '/CN=CA Root'
openssl x509 -req -in certs/root.csr -days 365 -signkey certs/root.key -CAcreateserial -out certs/root.pem
openssl genpkey -algorithm Ed25519 -out certs/server.key
openssl req -new -out certs/server.csr -key certs/server.key -subj $server
openssl x509 -req -in certs/server.csr -days 365 -CA certs/root.pem -CAkey certs/root.key -CAcreateserial -out certs/server.pem
echo "setting docker-compose..."
wget -q -O /root/docker-compose.yml https://raw.githubusercontent.com/gravitl/netmaker/master/compose/docker-compose.contained.yml