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

feat: Add tls_invalid_certificates argument #742

Merged
merged 1 commit into from
Apr 17, 2024
Merged

feat: Add tls_invalid_certificates argument #742

merged 1 commit into from
Apr 17, 2024

Conversation

jouir
Copy link
Contributor

@jouir jouir commented Apr 10, 2024

Hello,

Since MongoDB 7.0.6, when CAFile nor clusterCAFile is provided, the server refuses to start.

https://jira.mongodb.org/browse/SERVER-72839

Servers having self-signed certificates must define:

  • tlsUseSystemCA (via set_parameters)
  • net.tls.allowInvalidCertificates

https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-net.tls.allowInvalidCertificates

This commit enables net.tls.allowInvalidCertificates via tls_invalid_certificates.

Since 7.0.6, when CAFile nor clusterCAFile is provided, the server refuses to start.

https://jira.mongodb.org/browse/SERVER-72839

Servers having self-signed certificates must define:
* `tlsUseSystemCA` (via `set_parameters`)
* `net.tls.allowInvalidCertificates`

https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-net.tls.allowInvalidCertificates

This commit enables `net.tls.allowInvalidCertificates` via `tls_invalid_certificates`.

Signed-off-by: Julien Riou <[email protected]>
@h-haaks
Copy link
Contributor

h-haaks commented Apr 17, 2024

@jouir as you may have noticed there has been a few major changes i the master branch lately.
I took the liberty to rebase your branch and fix test issues.

@h-haaks h-haaks added the enhancement New feature or request label Apr 17, 2024
@h-haaks h-haaks merged commit 52dd30b into voxpupuli:master Apr 17, 2024
100 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants