We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcb2cd commit 27bab9eCopy full SHA for 27bab9e
bin/v-generate-ssl-cert
@@ -74,6 +74,10 @@ args_usage='DOMAIN EMAIL COUNTRY STATE CITY ORG UNIT [ALIASES] [FORMAT]'
74
check_args '7' "$#" "$args_usage"
75
is_format_valid 'domain' 'aliases' 'format'
76
77
+release="$(lsb_release -s -r)"
78
+if [ "$release" = "18.04" ]; then
79
+ is_format_valid 'email'
80
+fi
81
82
if [ ! -f /root/.rnd ]; then
83
touch /root/.rnd
@@ -108,7 +112,7 @@ if [ -z "$aliases" ]; then
108
112
-batch \
109
113
-subj "$subj" \
110
114
-key $domain.key \
111
- -out $domain.csr #>/dev/null 2>&1
115
+ -out $domain.csr >/dev/null 2>&1
116
else
117
for alias in $(echo $domain,$aliases |tr ',' '\n' |sort -u); do
118
if [[ "$alias" = *[![:ascii:]]* ]]; then
0 commit comments