Skip to content

Commit

Permalink
Fix problem with verifying signature on AIX (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
WStechura authored Dec 18, 2024
1 parent fd6109d commit acc055a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/oneagent/tasks/provide-installer/signature-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
ansible.builtin.shell: >
( printf '%s\n' '{{ oneagent_certificate_verification_header }}';
printf '\n\n----SIGNED-INSTALLER\n'; cat "{{ oneagent_installer_path }}" ) |
openssl cms -verify -CAfile "{{ oneagent_ca_cert_dest_path }}" > /dev/null
{{ oneagent_additional_openssl_env | default('') }} openssl cms -verify -CAfile "{{ oneagent_ca_cert_dest_path }}" > /dev/null
no_log: true
ignore_errors: true
changed_when: false
Expand Down
1 change: 1 addition & 0 deletions roles/oneagent/vars/aix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ oneagent_ca_cert_src_path: "{{ role_path }}/files/dt-root.cert.pem"
oneagent_ca_cert_dest_path: "{{ oneagent_download_path }}/dt-root.cert.pem"
oneagent_certificate_verification_header: >
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="--SIGNED-INSTALLER"
oneagent_additional_openssl_env: LDR_CNTRL=MAXDATA=0x40000000
oneagent_service_name: oneagent

0 comments on commit acc055a

Please sign in to comment.