Skip to content

Commit

Permalink
Merge pull request #52 from binlab/issue-51
Browse files Browse the repository at this point in the history
Replace legacy Common Name field (CN) with SAN DNS
  • Loading branch information
binlabbot authored Jul 29, 2021
2 parents 1370dfa + b813804 commit afe1386
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tls.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ resource "tls_cert_request" "node" {
private_key_pem = tls_private_key.node[count.index].private_key_pem

subject {
common_name = format(local.internal_domain_tmpl, count.index)
common_name = format("%s Node %d", var.cluster_description, var.cluster_count)
organizational_unit = format("%s Certificate", var.cluster_description)
organization = var.cluster_description
}

dns_names = [
format(local.internal_domain_tmpl, count.index)
]

lifecycle {
prevent_destroy = false
}
Expand Down

0 comments on commit afe1386

Please sign in to comment.