Skip to content

Commit 83d9bac

Browse files
committed
Generate Python 3.13+ compatible certs
Python 3.13 tightened SSL cert validation requirements [1] which requires changes to how we generate our CA and server CSRs [2]. Once merged, we will need to regenerate certs on existing hosts. [1] https://docs.python.org/3/whatsnew/3.13.html#ssl [2] https://galaxy.ansible.com/ui/repo/published/community/crypto/content/module/openssl_csr/ Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 98acf07 commit 83d9bac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

playbooks/roles/simpleca/tasks/main.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
common_name: "simpleca"
3232
basic_constraints:
3333
- "CA:TRUE"
34+
basic_constraints_critical: true
35+
key_usage:
36+
- keyCertSign
37+
- cRLSign
38+
key_usage_critical: true
3439
register: ca_csr
3540

3641
- name: Sign the CA CSR
@@ -83,6 +88,12 @@
8388
- "IP:{{ control_plane_ip }}"
8489
- "IP:{{ hostonly_gateway }}"
8590
- "IP:{{ hostonly_v6_gateway }}"
91+
key_usage:
92+
- digitalSignature
93+
- keyEncipherment
94+
key_usage_critical: true
95+
extended_key_usage:
96+
- serverAuth
8697
register: user_csr
8798

8899
- name: Sign the CSR for {{ cert_user }}

0 commit comments

Comments
 (0)