Skip to content

Commit

Permalink
Added subject to the TLS certificate signing request
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 24, 2024
1 parent 7368911 commit d30cd4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion automation/roles/tls_certificate/generate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@
- name: "Create server CSR"
community.crypto.openssl_csr_pipe:
privatekey_path: "/etc/tls/server.key"
common_name: postgresql.cluster
common_name: "{{ patroni_cluster_name }}"
key_usage:
- digitalSignature
- keyEncipherment
- dataEncipherment
extended_key_usage:
- clientAuth
- serverAuth
subject:
C: "AL"
O: "autobase"
CN: "{{ patroni_cluster_name }}"
subject_alt_name: "{{ subject_alt_name }}"
register: csr

Expand Down

0 comments on commit d30cd4f

Please sign in to comment.