Bug 11642

Summary: ansible: Install LDAP certificates in /etc/openldap/cacerts
Product: Infrastructure Reporter: Michael Tremer <michael.tremer>
Component: ---Assignee: Timo Eissler <morlix>
Status: CLOSED FIXED QA Contact:
Severity: Security    
Priority: - Unknown - CC: morlix
Version: unspecified   
Hardware: unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 11640, 11643    

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