From 5f2aa9e5e9816a6589710778026a79d953cd22e8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 26 May 2018 15:32:21 +0100 Subject: [PATCH] Create a self-signed cert for the local domain if it doesn't exist --- src/freedombone-utils-android | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-utils-android b/src/freedombone-utils-android index 9be1fc3e..829584fe 100755 --- a/src/freedombone-utils-android +++ b/src/freedombone-utils-android @@ -31,6 +31,12 @@ function android_update_apps { detect_installable_apps fi + # Create a self-signed cert if needed + # The FreedomBox app assumes a self-signed cert + if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then + install_web_local_user_interface + fi + local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local plinth_api="/var/www/${local_hostname}/htdocs/plinth/api/1"