Parcourir la source

Control panel option to pin all certs

Bob Mottram il y a 8 ans
Parent
révision
09678bda25
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9
    1
      src/freedombone-sec

+ 9
- 1
src/freedombone-sec Voir le fichier

@@ -698,6 +698,10 @@ function register_website_interactive {
698 698
     esac
699 699
 }
700 700
 
701
+function pin_all_tls_certs {
702
+    ${PROJECT_NAME}-pin-cert all
703
+}
704
+
701 705
 function housekeeping {
702 706
     cmd=(dialog --separate-output \
703 707
                 --backtitle "Freedombone Security Configuration" \
@@ -710,7 +714,8 @@ function housekeeping {
710 714
              5 "Renew Let's Encrypt certificate" off
711 715
              6 "Enable GPG based authentication (monkeysphere)" off
712 716
              7 "Register a website with monkeysphere" off
713
-             8 "Go Back/Exit" on)
717
+             8 "Pin all TLS certificates" off
718
+             9 "Go Back/Exit" on)
714 719
     choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
715 720
     clear
716 721
     for choice in $choices
@@ -738,6 +743,9 @@ function housekeeping {
738 743
                 register_website
739 744
                 ;;
740 745
             8)
746
+                pin_all_tls_certs
747
+                ;;
748
+            9)
741 749
                 exit 0
742 750
                 ;;
743 751
         esac