Skip to content

Commit 854c701

Browse files
authored
allow to generate separate Intermediate CA cert as well as bundle (#43)
* allow to generate separate Intermediate CA cert as well as bundle * CI: change extenstion of intermediate CA cert
1 parent 5d535dc commit 854c701

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

roles/vault_pki/tasks/intermediate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
copy:
7373
content: |
7474
{{ intermediate_ca_csr_signed.data.certificate }}
75-
dest: "{{ vault_pki_certificates_directory }}/{{ vault_pki_intermediate_ca_name | replace(' ', '-') }}.pem"
75+
dest: "{{ vault_pki_certificates_directory }}/{{ vault_pki_intermediate_ca_name | replace(' ', '-') }}.crt"
7676
mode: 0600
7777
delegate_to: "{{ vault_pki_write_certificates_host }}"
7878
when:

tests/test_vault.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@
9898
- OS-CERT-TEST2.pem
9999

100100
- name: concatenate CAs
101-
shell: |
102-
cat /tmp/OS-TLS-ROOT.pem /tmp/OS-TLS-INT.pem > /tmp/CA-CHAIN.pem
101+
shell: |
102+
cat /tmp/OS-TLS-ROOT.pem /tmp/OS-TLS-INT.crt > /tmp/CA-CHAIN.pem
103103
args:
104104
executable: /bin/bash
105105
become: true
106106

107107
- name: verify certificate chain
108-
command: |
108+
command: |
109109
openssl verify -CAfile /tmp/CA-CHAIN.pem
110110
/tmp/{{ item }}
111111
register: verify_result

0 commit comments

Comments
 (0)