Browse Source

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 years ago
parent
commit
10904d0a95
1 changed files with 1 additions and 1 deletions
  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=""
 # Generate the CSR
-if [ -z "$email" ]; then 
+if [ -n "$email" ]; then 
     subj="/emailAddress=$email"
 fi