Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subjectAltName to custom certificates role #1481

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions roles/custom_certificates/templates/openssl.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nameopt = default_ca
certopt = default_ca

unique_subject = no
copy_extensions = none
copy_extensions = copy

[ policy_match ]
countryName = match
Expand Down Expand Up @@ -56,11 +56,16 @@ authorityKeyIdentifier = keyid:always,issuer:always
nsCertType = sslCA
keyUsage = cRLSign, keyCertSign
extendedKeyUsage = serverAuth, clientAuth

subjectAltName = @alt_names

[ v3_req ]
basicConstraints = CA:FALSE
subjectKeyIdentifier = hash
extendedKeyUsage = serverAuth, clientAuth
subjectAltName = @alt_names

[alt_names]
DNS.1 = {{ ansible_fqdn }}

[ ssl_server ]
basicConstraints = CA:FALSE
Expand Down