Skip to content

Commit 1e35753

Browse files
authored
Update openssl.yml (trailofbits#1403)
1 parent a60d49f commit 1e35753

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

roles/strongswan/tasks/openssl.yml

+17
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,23 @@
151151
with_items: "{{ users }}"
152152
register: p12
153153

154+
- name: Build the client's p12 with the CA cert included
155+
shell: >
156+
umask 077;
157+
{{ openssl_bin }} pkcs12
158+
-in certs/{{ item }}.crt
159+
-inkey private/{{ item }}.key
160+
-export
161+
-name {{ item }}
162+
-out private/{{ item }}_ca.p12
163+
-certfile cacert.pem
164+
-passout pass:"{{ p12_export_password }}"
165+
args:
166+
chdir: "{{ ipsec_pki_path }}"
167+
executable: bash
168+
with_items: "{{ users }}"
169+
register: p12
170+
154171
- name: Copy the p12 certificates
155172
copy:
156173
src: "{{ ipsec_pki_path }}/private/{{ item }}.p12"

0 commit comments

Comments
 (0)