From 88c86c0191fa95a7324e6b5a8255598f22c7a332 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 20 Feb 2022 21:45:11 -0600 Subject: [PATCH] Update IKEv2 script - Show the option to protect IKEv2 client config files only during IKEv2 setup, not when adding or exporting a client. - Cleanup --- extras/ikev2setup.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 7486dae..e1f1829 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -150,7 +150,7 @@ confirm_or_abort() { show_header() { cat <<'EOF' -IKEv2 Script Copyright (c) 2020-2022 Lin Song 18 Feb 2022 +IKEv2 Script Copyright (c) 2020-2022 Lin Song 21 Feb 2022 EOF } @@ -329,7 +329,7 @@ show_add_client() { } show_export_client() { - bigecho "Exporting IKEv2 client '$client_name', using default options." + bigecho "Exporting IKEv2 client '$client_name'." } get_export_dir() { @@ -603,9 +603,8 @@ select_config_password() { if [ "$use_config_password" = "0" ]; then cat <<'EOF' -IKEv2 client config contains the client certificate, private key and CA certificate. +IKEv2 client config files contain the client certificate, private key and CA certificate. This script can optionally generate a random password to protect these files. -Future client config files will also be protected using this password. EOF printf "Protect client config files using a password? [y/N] " @@ -1418,7 +1417,6 @@ ikev2setup() { 1) enter_client_name enter_client_validity - select_config_password echo create_client_cert export_client_config @@ -1428,7 +1426,6 @@ ikev2setup() { ;; 2) enter_client_name_for export - select_config_password echo export_client_config print_client_exported