From 82c9022162e56d6e7c8a6b6f688d0d8d25c8238f Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 1 Dec 2015 13:21:31 +0200
Subject: [PATCH] Regex now works on different versions of OpenSSL.

---
 ssl/dhparams | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssl/dhparams b/ssl/dhparams
index a5c68ea..e5ed96d 100755
--- a/ssl/dhparams
+++ b/ssl/dhparams
@@ -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 }"
-- 
GitLab