Browse Source

Merge 18e7a033ad into b4d2695081

pull/155/merge
tslodki 9 years ago
committed by GitHub
parent
commit
fd354dfdff
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      getssl

+ 1
- 2
getssl View File

@ -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
}


Loading…
Cancel
Save