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

Describe LDAPS setup with self-signed certificate #17358

Open
justusbunsi opened this issue Oct 19, 2021 · 1 comment
Open

Describe LDAPS setup with self-signed certificate #17358

justusbunsi opened this issue Oct 19, 2021 · 1 comment
Labels
topic/authentication type/docs This PR mainly updates/creates documentation

Comments

@justusbunsi
Copy link
Member

In the current documentation there is no guidance on how to handle LDAPS connections with self-signed certificates.

@zeripath
Copy link
Contributor

zeripath commented Oct 19, 2021

#16376 (comment)

Add your certificate to a copy of the root certs file and set the SSL_CERT_FILE environment variable to the new file.

See: https://pkg.go.dev/crypto/x509@go1.16.6#SystemCertPool

and

https://cs.opensource.google/go/go/+/refs/tags/go1.16.6:src/crypto/x509/root_linux.go

(On linux that is. On windows and mac you need to add the new RootCA to the system pool.)

Unfortunately as far as I can see if we were to provide an option to set the trusted CAs, users would have to provide a file containing all root CAs.

@noerw noerw added the type/docs This PR mainly updates/creates documentation label Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/authentication type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

No branches or pull requests

5 participants