From 6b6ad1cbd82217a63155711117fd68ddb9b43353 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Tue, 26 Jul 2022 23:55:14 -0500 Subject: [PATCH] Update IKEv2 script - Add a check for OpenSSL 3 when creating client configuration. --- extras/ikev2setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/ikev2setup.sh b/extras/ikev2setup.sh index 0224bea..24e8aef 100755 --- a/extras/ikev2setup.sh +++ b/extras/ikev2setup.sh @@ -151,7 +151,7 @@ confirm_or_abort() { show_header() { cat <<'EOF' -IKEv2 Script Copyright (c) 2020-2022 Lin Song 10 Jul 2022 +IKEv2 Script Copyright (c) 2020-2022 Lin Song 27 Jul 2022 EOF } @@ -767,7 +767,7 @@ export_p12_file() { -name "$client_name" -passin "pass:$p12_password" -passout pass: || exit 1 fi /bin/rm -f "$pem_file" - elif [ "$os_ver" = "bookwormsid" ]; then + elif [ "$os_ver" = "bookwormsid" ] || openssl version 2>/dev/null | grep -q "^OpenSSL 3"; then ca_crt="$export_dir$client_name.ca.crt" client_crt="$export_dir$client_name.client.crt" client_key="$export_dir$client_name.client.key"