Bug 11642 - ansible: Install LDAP certificates in /etc/openldap/cacerts
Summary: ansible: Install LDAP certificates in /etc/openldap/cacerts
Status: CLOSED FIXED
Alias: None
Product: Infrastructure
Classification: Unclassified
Component: --- (show other bugs)
Version: unspecified
Hardware: unspecified Unspecified
: - Unknown - Security
Assignee: Timo Eissler
QA Contact:
URL:
Keywords:
Depends on:
Blocks: ANSIBLE 11643
  Show dependency treegraph
 
Reported: 2018-02-26 19:48 UTC by Michael Tremer
Modified: 2019-08-28 14:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tremer 2018-02-26 19:48:59 UTC
The LE root certificate needs to be installed into /etc/openldap/cacerts and c_rehash from the openssl-perl package needs to be executed in that directory.
Comment 1 Timo Eissler 2018-05-07 10:44:35 UTC
Implemented in the ansible common role.

Currently the complete Let's Encrypt CA certificates would be added.

- ISRG Root X1
- Let's Encrypt X3 cross-signed
- Let's Encrypt X3 ISRG Root X1 signed

Do you really want the cacerts to be deployed to /etc/openldap/cacerts/ or /etc/openldap/certs?

I'm asking because the directory /etc/openldap/certs exists at least on git01.ipfire.org but the directory /etc/openldap/cacerts/ does not.
Comment 2 Michael Tremer 2018-05-07 12:35:08 UTC
Yes, put them into /etc/openldap/cacerts, please.
Comment 3 Michael Tremer 2018-05-24 13:12:25 UTC
Today, I tried to deploy a machine and c_rehash wasn't installed.

I didn't think it should be installed as part of the common packages and created an extra task for that. Please review and change it that wasn't a good idea.
Comment 4 Timo Eissler 2018-08-13 12:05:23 UTC
I prefer to install the certificates into the Fedora / CentOS ca trust store (/etc/pki/ca-trust/source/anchors/).

This way we don't need to configure every application to use the certs below the openldap path.

Additionally we don't need to install c_rehash as this will be done by the "update-ca-trust" program.
Comment 5 Timo Eissler 2018-08-13 12:13:57 UTC
I can't find an extra task for the c_rehash installation?!
Comment 6 Timo Eissler 2018-08-13 15:01:30 UTC
Done