arillso/ansible.ca-certificates

Certificate content (Linux) not copied to *.crt but to *.pem. Thus, content is not imported.

Opened this issue · 0 comments

Hi,
thanks for the role! It makes my life a lot easier :-)

A small issue with tasks/distribution/Linux/certificate.yml:
Working on Ubuntu 20.04, I noticed that the "content" of ca_certificates is copied to *.pem files, which will not be imported to /etc/ssl/certs/ca-certificates.crt
All other methods in this file correctly copy the certificates to *.crt.

After changing "dest" to copy the content to .crt files, everything got imported correctly.

My changes:
line 27
dest: '{{ ca_certificates_path }}/{{ install_item.name }}.crt'

Hope this helps

Best regards,
Christian