File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,13 @@ cd $workdir
9393# Generate private key
9494openssl genrsa $KEY_SIZE > $domain .key 2> /dev/null
9595
96+ subj= " "
9697# Generate the CSR
97- subj= " /emailAddress=$email /C=$country /ST=$state /L=$city /O=$org "
98+ if [ -z " $email " ]; then
99+ subj=" /emailAddress=$email "
100+ fi
101+
102+ subj= " $subj /C=$country /ST=$state /L=$city /O=$org "
98103subj= " $subj /OU=$org_unit /CN=$domain_idn "
99104
100105if [ -z " $aliases " ]; then
Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ $HESTIA/bin/v-change-sys-hostname $servername > /dev/null 2>&1
11811181
11821182# Generating SSL certificate
11831183echo " [ * ] Generating default self-signed SSL certificate..."
1184- $HESTIA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
1184+ $HESTIA /bin/v-generate-ssl-cert $( hostname) ' ' ' US' ' California' \
11851185 ' San Francisco' ' Hestia Control Panel' ' IT' > /tmp/hst.pem
11861186
11871187# Parsing certificate file
Original file line number Diff line number Diff line change @@ -1210,7 +1210,7 @@ $HESTIA/bin/v-change-sys-hostname $servername > /dev/null 2>&1
12101210
12111211# Generating SSL certificate
12121212echo " [ * ] Generating default self-signed SSL certificate..."
1213- $HESTIA /bin/v-generate-ssl-cert $( hostname) $email ' US' ' California' \
1213+ $HESTIA /bin/v-generate-ssl-cert $( hostname) ' ' ' US' ' California' \
12141214 ' San Francisco' ' Hestia Control Panel' ' IT' > /tmp/hst.pem
12151215
12161216# Parsing certificate file
Original file line number Diff line number Diff line change 1111} else {
1212 $ v_domain = 'example.ltd ' ;
1313}
14- $ v_email = 'admin@ ' . $ v_domain ;
14+ $ v_email = '' ;
1515$ v_country = 'US ' ;
1616$ v_state = 'California ' ;
1717$ v_locality = 'San Francisco ' ;
3939if (empty ($ _POST ['v_state ' ])) $ errors [] = _ ('State ' );
4040if (empty ($ _POST ['v_locality ' ])) $ errors [] = _ ('City ' );
4141if (empty ($ _POST ['v_org ' ])) $ errors [] = _ ('Organization ' );
42- if (empty ($ _POST ['v_email ' ])) $ errors [] = _ ('Email ' );
4342$ v_domain = $ _POST ['v_domain ' ];
4443$ v_aliases = $ _POST ['v_aliases ' ];
4544$ v_email = $ _POST ['v_email ' ];
You can’t perform that action at this time.
0 commit comments