From 18e7a033ad71010c99d0793862fe08a693f69f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C5=82odkowicz?= Date: Wed, 26 Oct 2016 01:45:24 +0200 Subject: [PATCH] Replace process substitution with simple pipeline to improve portability --- getssl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/getssl b/getssl index 1b23ff6..4b201a7 100755 --- a/getssl +++ b/getssl @@ -405,8 +405,7 @@ create_csr() { # create a csr using a given key (if it doesn't already exist) # if CSR does not exist, or flag set to recreate, then create csr if [ ! -f "$csr_file" ] || [ "$_RECREATE_CSR" == "1" ]; then info "creating domain csr - $csr_file" - openssl req -new -sha256 -key "$csr_key" -subj "/" -reqexts SAN -config \ - <(cat "$SSLCONF" <(printf "[SAN]\n%s" "$SANLIST")) > "$csr_file" + echo -ne "[SAN]\n$SANLIST" | cat "$SSLCONF" - | openssl req -new -sha256 -key "$csr_key" -subj "/" -reqexts SAN -config >"$csr_file" fi }