Skip to content

Commit

Permalink
Update IKEv2 script
Browse files Browse the repository at this point in the history
- Update client config file generation code due to a recent change
  on Ubuntu 20.04: The libnss3 package was recently updated to
  version 3.98 on Ubuntu 20.04, which requires these changes to the
  IKEv2 script.
  Ref: https://packages.ubuntu.com/focal/libnss3
  • Loading branch information
hwdsl2 committed Apr 11, 2024
1 parent 4c6f37e commit 25670f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/ikev2setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ confirm_or_abort() {
show_header() {
cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2024 Lin Song 3 Feb 2024
IKEv2 Script Copyright (c) 2020-2024 Lin Song 10 Apr 2024
EOF
}
Expand Down Expand Up @@ -820,7 +820,7 @@ export_p12_file() {
-legacy -name "$client_name" -passin "pass:$p12_password" -passout pass: || exit 1
fi
/bin/rm -f "$pem_file"
elif [ "$os_type" = "alpine" ] || [ "$os_ver" = "kalirolling" ] || [ "$os_type$os_ver" = "ubuntu11" ]; then
elif [ "$os_type" = "alpine" ] || [ "$os_ver" = "kalirolling" ] || [ "$os_ver" = "bullseyesid" ]; then
pem_file="$export_dir$client_name.temp.pem"
openssl pkcs12 -in "$p12_file_enc" -out "$pem_file" -passin "pass:$p12_password" -passout "pass:$p12_password" || exit 1
openssl pkcs12 -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -export -in "$pem_file" -out "$p12_file_enc" \
Expand Down

0 comments on commit 25670f3

Please sign in to comment.