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

View file

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