Skip to content
Snippets Groups Projects
Commit 82c90221 authored by nimrod's avatar nimrod
Browse files

Regex now works on different versions of OpenSSL.

parent 71179e1b
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,6 @@ then
fi
bits="$(openssl dhparam -in $path -text -noout \
| sed -n 's/Diffie-Hellman-Parameters: (\([0-9]*\) bit)/\1/p')"
| sed -n 's/[a-zA-Z#0-9 \-]*Parameters: (\([0-9]*\) bit)/\1/p')"
echo "{ \"changed\": False, \"path\": \"$path\", \"bits\": $bits }"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment