瀏覽代碼

Control panel option to pin all certs

Bob Mottram 8 年之前
父節點
當前提交
09678bda25
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. 9
    1
      src/freedombone-sec

+ 9
- 1
src/freedombone-sec 查看文件

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