diff --git a/setup.sh b/setup.sh
index 54290074f3b0921a619c589ac38221c04322e095..9b9890e8df75fc41c6643b379375deb007e35aae 100755
--- a/setup.sh
+++ b/setup.sh
@@ -62,14 +62,14 @@ echo ""
 remove_all_configs
 clone_repositories
 
+configure_letsencrypt
+
 if [ "$USE_JITSI" == "true" ]; then
     git clone $JITSI_URL
     wait
     ./"$JITSI_DIR"/setup.sh
 fi
 
-configure_letsencrypt
-
 if [ "$USE_MUMBLE" == "true" ];then
     git clone $MUMBLE_URL
     wait