For SANs certificates, also add a CN for the first domain

This commit is contained in:
Benoît S. 2018-07-12 11:12:29 +02:00
parent 5e9d4906ad
commit 758a537a8d
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ EOF
done
san=$(echo "${san}" | sed 's/^,//')
cat "${SSL_CONFIG_FILE}" - > "${config_file}" <<EOF
CN=${domains%% *}
[SAN]
subjectAltName=${san}
EOF