diff options
author | Dominik Kaaser <dominik@kaaser.at> | 2020-04-19 16:25:07 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2020-04-19 16:33:05 +0200 |
commit | 159b3dc59b30df3e62d1bcadd088bf97642586e7 (patch) | |
tree | 4ab68c3ccebf84ae9cb2554fdcd7bc6fd06d653d | |
parent | f1b4f350c7971b7b661fb77915a8bb6eb2c71598 (diff) |
fix parsing of openssl output in letsencrypt helper
Signed-off-by: Peter Palfrader <peter@palfrader.org>
-rwxr-xr-x | letsencrypt-helpers/make-combined-crt | 2 |
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 |