Update IKEv2 script
- Show the option to protect IKEv2 client config files only during IKEv2 setup, not when adding or exporting a client. - Cleanup
This commit is contained in:
parent
55c91c7202
commit
88c86c0191
@ -150,7 +150,7 @@ confirm_or_abort() {
|
|||||||
show_header() {
|
show_header() {
|
||||||
cat <<'EOF'
|
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
|
EOF
|
||||||
}
|
}
|
||||||
@ -329,7 +329,7 @@ show_add_client() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_export_client() {
|
show_export_client() {
|
||||||
bigecho "Exporting IKEv2 client '$client_name', using default options."
|
bigecho "Exporting IKEv2 client '$client_name'."
|
||||||
}
|
}
|
||||||
|
|
||||||
get_export_dir() {
|
get_export_dir() {
|
||||||
@ -603,9 +603,8 @@ select_config_password() {
|
|||||||
if [ "$use_config_password" = "0" ]; then
|
if [ "$use_config_password" = "0" ]; then
|
||||||
cat <<'EOF'
|
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.
|
This script can optionally generate a random password to protect these files.
|
||||||
Future client config files will also be protected using this password.
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
printf "Protect client config files using a password? [y/N] "
|
printf "Protect client config files using a password? [y/N] "
|
||||||
@ -1418,7 +1417,6 @@ ikev2setup() {
|
|||||||
1)
|
1)
|
||||||
enter_client_name
|
enter_client_name
|
||||||
enter_client_validity
|
enter_client_validity
|
||||||
select_config_password
|
|
||||||
echo
|
echo
|
||||||
create_client_cert
|
create_client_cert
|
||||||
export_client_config
|
export_client_config
|
||||||
@ -1428,7 +1426,6 @@ ikev2setup() {
|
|||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
enter_client_name_for export
|
enter_client_name_for export
|
||||||
select_config_password
|
|
||||||
echo
|
echo
|
||||||
export_client_config
|
export_client_config
|
||||||
print_client_exported
|
print_client_exported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user