Skip to content

Commit 627f2eb

Browse files
committed
Bug caused when email is present it was not added to the csr
1 parent de88352 commit 627f2eb

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)