Skip to content

Commit 10904d0

Browse files
authored
Merge pull request hestiacp#2956 from jaapmarcus/fix/v-generate-ssl-cert
Bug caused when email is present it was not added to the csr
2 parents 339450e + 627f2eb commit 10904d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-generate-ssl-cert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ openssl genrsa "$KEY_SIZE" > "$domain.key" 2>/dev/null
104104

105105
subj=""
106106
# Generate the CSR
107-
if [ -z "$email" ]; then
107+
if [ -n "$email" ]; then
108108
subj="/emailAddress=$email"
109109
fi
110110

0 commit comments

Comments
 (0)