Browse Source

remove openssl from nm-quick

Signed-off-by: Matthew R. Kasun <[email protected]>
Matthew R. Kasun 3 years ago
parent
commit
31b3dfec14
1 changed files with 1 additions and 13 deletions
  1. 1 13
      scripts/nm-quick.sh

+ 1 - 13
scripts/nm-quick.sh

@@ -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