From 878d6a80289d8a197edd5508eb018804f6dc5268 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 May 2017 19:39:41 +0100 Subject: [PATCH] Check for incorrect cert type --- src/freedombone-app-matrix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 14083464..affa74f0 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -617,6 +617,11 @@ function install_matrix { if [[ $ONION_ONLY == "no" ]]; then chmod 755 /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.dhparam fi + + if [ -f /etc/ssl/certs/${MATRIX_DOMAIN_NAME}.crt ]; then + echo $'Incorrect certificate generated' + exit 73572 + fi fi fi