Fixed ssl
parent
8254322264
commit
186dd046f3
|
@ -59,10 +59,9 @@ if ! sudo chmod 400 "${SSL_CONFIG_DIR}/${username}/${hostname}/server.key" >>"${
|
|||
fi
|
||||
|
||||
# Generate CSR
|
||||
san="subjectAltName = DNS:${hostname}.${username}.${TLD},DNS:*.${hostname}.${username}.${TLD}"
|
||||
san="subjectAltName=DNS:${hostname}.${username}.${TLD},DNS:*.${hostname}.${username}.${TLD}"
|
||||
[ "${ipstring}" != "" ] && san="${san},${ipstring}"
|
||||
<<<"${san}" grep ' ' && printf "SPACES IN SAN\n" >>"${LOGFILE}"
|
||||
if ! sudo /usr/bin/openssl req -new -sha256 -reqexts SAN \
|
||||
if ! sudo /usr/bin/openssl req -new -sha256 \
|
||||
-key "${SSL_CONFIG_DIR}/${username}/${hostname}/server.key" \
|
||||
-out "${SSL_CONFIG_DIR}/${username}/${hostname}.csr" \
|
||||
-config '/etc/ssl/openssl.cnf' \
|
||||
|
|
Loading…
Reference in New Issue