Skip to content

Commit

Permalink
Merge pull request #71 from NETWAYS/logstash-private-key
Browse files Browse the repository at this point in the history
Modify: logstash private key task
  • Loading branch information
Saeid-Abadi authored Jul 31, 2024
2 parents 50c1484 + c27cd39 commit 1a5abe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ansible
ansible-lint
molecule
molecule-docker
requests==2.31.0
molecule-plugins[docker]
6 changes: 4 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,14 @@
- name: Create Logstash compatible key
ansible.builtin.command: >
openssl pkcs8
-in {{ ca_client_ca_dir }}/{{ inventory_hostname }}.key
-inform PEM
-outform PEM
-nocrypt
-topk8
-in {{ ca_client_ca_dir }}/{{ inventory_hostname }}.key
-passin pass:{{ ca_keypassphrase | default(omit, true) }}
{% if ca_ls7_workaround | bool %}-v1 {{ ca_ls7_workaround_cipher }}{% endif %}
-out {{ ca_client_ca_dir }}/{{ inventory_hostname }}-pkcs8.key
-passout pass:{{ ca_keypassphrase | default(omit, true) }}
args:
creates: "{{ ca_client_ca_dir }}/{{ inventory_hostname }}-pkcs8.key"

Expand Down

0 comments on commit 1a5abe7

Please sign in to comment.