Преглед изворни кода

Merge pull request #2956 from jaapmarcus/fix/v-generate-ssl-cert

Bug caused when email is present  it was not added to the csr
Raphael пре 3 година
родитељ
комит
10904d0a95
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/v-generate-ssl-cert

+ 1 - 1
bin/v-generate-ssl-cert

@@ -104,7 +104,7 @@ openssl genrsa "$KEY_SIZE" > "$domain.key" 2>/dev/null
 
 
 subj=""
 subj=""
 # Generate the CSR
 # Generate the CSR
-if [ -z "$email" ]; then 
+if [ -n "$email" ]; then 
     subj="/emailAddress=$email"
     subj="/emailAddress=$email"
 fi
 fi