Add options for MongoDB TLS and X509 authentication#3745
Open
JCapucho wants to merge 1 commit intoeclipse-hono:masterfrom
Open
Add options for MongoDB TLS and X509 authentication#3745JCapucho wants to merge 1 commit intoeclipse-hono:masterfrom
JCapucho wants to merge 1 commit intoeclipse-hono:masterfrom
Conversation
Adds options to enable the use of SSL/TLS in the connection to the MongoDB instance, including setting the CA certificate to use as the trust anchor. Also adds options to configure the client certificate and key for use in X509 authentication.
sophokles73
requested changes
Mar 17, 2026
Contributor
sophokles73
left a comment
There was a problem hiding this comment.
Thanks for the PR 👍
I have just a small question/request ...
| Optional<String> certPath(); | ||
|
|
||
| /** | ||
| * Gets the path to the Certificate Authority's certificate for use in TLS when connecting to the Mongo DB. |
Contributor
There was a problem hiding this comment.
Can you be a little more specific regarding the semantics of the path? Does it need to point to a single PEM file which contains one or more trusted certs? Or can it also point to a directory that contains multiple PEM files?
Contributor
|
Oh, can you please also amend the Mongo DB based Registry Admin Guide accordingly? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds options to enable the use of SSL/TLS in the connection to the MongoDB instance, including setting the CA certificate to use as the trust anchor.
Also adds options to configure the client certificate and key for use in X509 authentication.
The certificates and keys configuration options are applied even when the connection string option is specified because the Java MongoDB driver doesn't support the relevant connection string options.