Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container doesn't load CA Certificates when started. #311

Open
teixemf opened this issue Aug 31, 2022 · 4 comments
Open

Container doesn't load CA Certificates when started. #311

teixemf opened this issue Aug 31, 2022 · 4 comments

Comments

@teixemf
Copy link

teixemf commented Aug 31, 2022

Behaviour

Container doesn't load CA Certificates when started.
I tested it while trying to use User Authentication over LDAPS.

Steps to reproduce this issue

  1. Map the directory with your CA Certificates to directory "/usr/local/share/ca-certificates/" inside your container.
  2. Test the usage of some service that needs the CA Certificate. In my particular case, it was user login with LDAPS.

Expected behaviour

LibreNMS should be able to able to verify the authenticity of the LDAP server certificate.

Actual behaviour

LibreNMS fails to verify the authenticity of the LDAP server certificate.

@teixemf
Copy link
Author

teixemf commented Aug 31, 2022

To overcome the issue the LibreNMS container should run the command /usr/sbin/update-ca-certificates during startup.
/usr/sbin/update-ca-certificates will update the CA store.

@tmoesi
Copy link

tmoesi commented Oct 26, 2022

I second this and would love to this implemented officially.

@tmoesi
Copy link

tmoesi commented Oct 27, 2022

In the meantime I fixed this with an ugly "hack" by mounting a "09-update-ca-certificates.sh" script into /etc/cont-init.d/ which only contains update-ca-certificates.
It works but still would like to see this supported officially.

@jdsatava127
Copy link

We are running into this issue as well. We are trying to enable the auth_ad_check_certificates option but the certificate validation always fails. We've tried adding LDAPTLS_CACERT, TLS_CACERT, and other php environment variables but none resolve the issue. Seems like LibreNMS requires the container to load the certs itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants