From 09678bda259a76a891a2635609d6ff88f6f351b3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Aug 2016 09:43:44 +0100 Subject: [PATCH] Control panel option to pin all certs --- src/freedombone-sec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/freedombone-sec b/src/freedombone-sec index bd867ba0..b0ef99b4 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -698,6 +698,10 @@ function register_website_interactive { esac } +function pin_all_tls_certs { + ${PROJECT_NAME}-pin-cert all +} + function housekeeping { cmd=(dialog --separate-output \ --backtitle "Freedombone Security Configuration" \ @@ -710,7 +714,8 @@ function housekeeping { 5 "Renew Let's Encrypt certificate" off 6 "Enable GPG based authentication (monkeysphere)" off 7 "Register a website with monkeysphere" off - 8 "Go Back/Exit" on) + 8 "Pin all TLS certificates" off + 9 "Go Back/Exit" on) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty) clear for choice in $choices @@ -738,6 +743,9 @@ function housekeeping { register_website ;; 8) + pin_all_tls_certs + ;; + 9) exit 0 ;; esac