mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-26 19:14:01 +02:00
Fix PKCS#12 file creation (#14558)
This commit is contained in:
parent
651f949ca6
commit
4bb12c4b10
1 changed files with 10 additions and 0 deletions
|
@ -155,10 +155,19 @@
|
||||||
format: OpenSSH
|
format: OpenSSH
|
||||||
with_items: "{{ users }}"
|
with_items: "{{ users }}"
|
||||||
|
|
||||||
|
- name: Gather the package facts
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: Get OpenSSL version
|
||||||
|
set_fact:
|
||||||
|
openssl_version: "{{ ansible_facts.packages['openssl'][0]['version'] }}"
|
||||||
|
|
||||||
- name: Build the client's p12
|
- name: Build the client's p12
|
||||||
shell: >
|
shell: >
|
||||||
umask 077;
|
umask 077;
|
||||||
{{ openssl_bin }} pkcs12
|
{{ openssl_bin }} pkcs12
|
||||||
|
{{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
|
||||||
-in certs/{{ item }}.crt
|
-in certs/{{ item }}.crt
|
||||||
-inkey private/{{ item }}.key
|
-inkey private/{{ item }}.key
|
||||||
-export
|
-export
|
||||||
|
@ -175,6 +184,7 @@
|
||||||
shell: >
|
shell: >
|
||||||
umask 077;
|
umask 077;
|
||||||
{{ openssl_bin }} pkcs12
|
{{ openssl_bin }} pkcs12
|
||||||
|
{{ (openssl_version is version('3', '>=')) | ternary('-legacy', '') }}
|
||||||
-in certs/{{ item }}.crt
|
-in certs/{{ item }}.crt
|
||||||
-inkey private/{{ item }}.key
|
-inkey private/{{ item }}.key
|
||||||
-export
|
-export
|
||||||
|
|
Loading…
Add table
Reference in a new issue