summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers
diff options
context:
space:
mode:
authorDominik Kaaser <dominik@kaaser.at>2020-04-19 16:25:07 +0200
committerPeter Palfrader <peter@palfrader.org>2020-04-19 16:33:05 +0200
commit159b3dc59b30df3e62d1bcadd088bf97642586e7 (patch)
tree4ab68c3ccebf84ae9cb2554fdcd7bc6fd06d653d /letsencrypt-helpers
parentf1b4f350c7971b7b661fb77915a8bb6eb2c71598 (diff)
fix parsing of openssl output in letsencrypt helper
Signed-off-by: Peter Palfrader <peter@palfrader.org>
Diffstat (limited to 'letsencrypt-helpers')
-rwxr-xr-xletsencrypt-helpers/make-combined-crt2
1 files changed, 1 insertions, 1 deletions
diff --git a/letsencrypt-helpers/make-combined-crt b/letsencrypt-helpers/make-combined-crt
index 531335f..885ee16 100755
--- a/letsencrypt-helpers/make-combined-crt
+++ b/letsencrypt-helpers/make-combined-crt
@@ -99,7 +99,7 @@ fi
(
cat "$chain"
-size=$(openssl rsa < "$cn".key -text -noout | awk -F: '$1 == "Private-Key" {print $2}' | sed -e 's/[^0-9]//g')
+size=$(openssl rsa < "$cn".key -text -noout | awk -F: '$1 ~ "Private-Key" {print $2}' | sed -r 's/[^0-9]*([0-9]*).*/\1/g')
if [ -e extra/dh-"$size".pem ]; then
cat extra/dh-"$size".pem;
else