From d225bcebd671daafd2ebf8c1145ec2f8f6358b05 Mon Sep 17 00:00:00 2001 From: Jens Schleede Date: Thu, 30 Oct 2025 16:50:42 +0100 Subject: [PATCH] Fixed extraction of easyroam commonName --- configure-eduroam-with-easyroam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure-eduroam-with-easyroam b/configure-eduroam-with-easyroam index 82c85a1..16b5529 100755 --- a/configure-eduroam-with-easyroam +++ b/configure-eduroam-with-easyroam @@ -4,7 +4,7 @@ # At first, you have to generate an easyroam profile on https://www.easyroam.de/ that # is generating an pkcs12 file as input for this script. -# Usage: bash configure-eduroam-with-easyroam.sh +# Usage: bash configure-eduroam-with-easyroam set -e @@ -68,7 +68,7 @@ ConfDir="$HOME/.easyroam" openssl pkcs12 -in "$InputFile" $LegacyOption -nokeys -passin pass: -out "$ConfDir/easyroam_client_cert.pem" openssl pkcs12 -in "$InputFile" $LegacyOption -nocerts -passin pass: -passout pass:"$Pwd" -out "$ConfDir/easyroam_client_key.pem" openssl pkcs12 -info -in "$InputFile" $LegacyOption -nokeys -passin pass: -out "$ConfDir/easyroam_root_ca.pem" > /dev/null 2>&1 -Identity=$(openssl x509 -noout -in "$ConfDir/easyroam_client_cert.pem" -subject | awk -F \, '{print $1}' | sed -e 's/.*=//' -e 's/\s*//') +Identity=$(openssl x509 -noout -in "$ConfDir/easyroam_client_cert.pem" -subject -nameopt multiline | awk -F' = ' '/commonName/ {print $2}') # Remove existing connections -- 2.49.1