Skip to content

Add options for MongoDB TLS and X509 authentication#3745

Open
JCapucho wants to merge 1 commit intoeclipse-hono:masterfrom
JCapucho:mongodb-tls
Open

Add options for MongoDB TLS and X509 authentication#3745
JCapucho wants to merge 1 commit intoeclipse-hono:masterfrom
JCapucho:mongodb-tls

Conversation

@JCapucho
Copy link
Copy Markdown

@JCapucho JCapucho commented Mar 4, 2026

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.

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.
Copy link
Copy Markdown
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@sophokles73
Copy link
Copy Markdown
Contributor

Oh, can you please also amend the Mongo DB based Registry Admin Guide accordingly?

@sophokles73 sophokles73 added enhancement MongoDB Device Registry issues related to the Device Registry implementation based on MongoDB labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement MongoDB Device Registry issues related to the Device Registry implementation based on MongoDB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants