Fixed ssl
parent
bc8b769514
commit
2d8c3b0b0d
|
@ -72,7 +72,6 @@ san="subjectAltNames = DNS:${hostname}.${username}.${TLD},DNS:*.${hostname}.${us
|
|||
if ! sudo /usr/bin/openssl req -new -sha256 -reqexts SAN \
|
||||
-key "${SSL_CONFIG_DIR}/${username}/${hostname}/server.key" \
|
||||
-out "${SSL_CONFIG_DIR}/${username}/${hostname}.csr" \
|
||||
# -config "${SSL_CONFIG_DIR}/${username}/${hostname}.cnf"
|
||||
-addext "${san}" \
|
||||
-subj "/O=${SSL_ORG}/OU=${username}/CN=${hostname}.${username}.${TLD}" \
|
||||
>>"${LOGFILE}" 2>&1; then
|
||||
|
@ -80,6 +79,7 @@ if ! sudo /usr/bin/openssl req -new -sha256 -reqexts SAN \
|
|||
exit 7
|
||||
fi
|
||||
|
||||
# -config "${SSL_CONFIG_DIR}/${username}/${hostname}.cnf"
|
||||
|
||||
# Generate cert
|
||||
if ! sudo /usr/bin/openssl x509 -req -sha256 -extensions SAN -CAcreateserial \
|
||||
|
|
Loading…
Reference in New Issue