From 142421487d9cd1fe21958703cfaf0c4b459cafbe Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 4 May 2021 22:51:50 -0500 Subject: [PATCH] More cert regen changes --- rootfs/standard/var/www/mynode/device_info.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index a3012bfa..4728fafb 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -553,6 +553,14 @@ def force_https(force): else: os.system("rm -f /home/bitcoin/.mynode/https_forced") +# Regen cert +def regen_https_cert(): + os.system("rm -rf /home/bitcoin/.mynode/https") + os.system("rm -rf /mnt/hdd/mynode/settings/https") + os.system("/usr/bin/mynode_gen_cert.sh https 825") + os.system("sync") + os.system("systemctl restart nginx") + def get_flask_secret_key(): if os.path.isfile("/home/bitcoin/.mynode/flask_secret_key"): key = get_file_contents("/home/bitcoin/.mynode/flask_secret_key")