Skip to content

Commit e300739

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix usage of Subject Alternative Name for TLS" into stable/wallaby
2 parents 2200fe1 + 0299a3d commit e300739

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

ansible/roles/certificates/tasks/generate-backend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
-CA "{{ root_dir }}/root.crt"
4040
-CAkey "{{ root_dir }}/root.key"
4141
-CAcreateserial
42+
-extensions v3_req
43+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla-backend.cnf"
4244
-out "{{ backend_dir }}/backend.crt"
4345
-days 500
4446
-sha256

ansible/roles/certificates/tasks/generate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
-CA "{{ root_dir }}/root.crt"
4747
-CAkey "{{ root_dir }}/root.key"
4848
-CAcreateserial
49+
-extensions v3_req
50+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla.cnf"
4951
-out "{{ external_dir }}/external.crt"
5052
-days 365
5153
-sha256
@@ -114,6 +116,8 @@
114116
-CA "{{ root_dir }}/root.crt"
115117
-CAkey "{{ root_dir }}/root.key"
116118
-CAcreateserial
119+
-extensions v3_req
120+
-extfile "{{ kolla_certificates_dir }}/openssl-kolla-internal.cnf"
117121
-out "{{ internal_dir }}/internal.crt"
118122
-days 365
119123
-sha256

ansible/roles/certificates/templates/openssl-kolla-internal.cnf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ countryName = US
88
stateOrProvinceName = NC
99
localityName = RTP
1010
organizationalUnitName = kolla
11-
commonName = {{ kolla_internal_fqdn }}
1211

1312
[v3_req]
1413
subjectAltName = @alt_names
1514

1615
[alt_names]
1716
{% if kolla_internal_fqdn != kolla_internal_vip_address %}
1817
DNS.1 = {{ kolla_internal_fqdn }}
19-
{% else %}
20-
IP.1 = {{ kolla_internal_fqdn }}
2118
{% endif %}
19+
IP.1 = {{ kolla_internal_vip_address }}

ansible/roles/certificates/templates/openssl-kolla.cnf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ countryName = US
88
stateOrProvinceName = NC
99
localityName = RTP
1010
organizationalUnitName = kolla
11-
commonName = {{ kolla_external_fqdn }}
1211

1312
[v3_req]
1413
subjectAltName = @alt_names
1514

1615
[alt_names]
1716
{% if kolla_external_fqdn != kolla_external_vip_address %}
1817
DNS.1 = {{ kolla_external_fqdn }}
19-
{% else %}
20-
IP.1 = {{ kolla_external_fqdn }}
2118
{% endif %}
19+
IP.1 = {{ kolla_external_vip_address }}

0 commit comments

Comments
 (0)