forked from evolix/ansible-roles
For SANs certificates, also add a CN for the first domain
This commit is contained in:
parent
5e9d4906ad
commit
758a537a8d
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue