Repository navigation
MQTT Broker: add mTLS transport support - #3202
Merged
Merged
Conversation
This was referenced Aug 17, 2026
pankalog
force-pushed
the
mtls/2-broker-mtls
branch
from
September 1, 2026 14:22
b454a23 to
aa89848
Compare
pankalog
force-pushed
the
mtls/2-broker-mtls
branch
3 times, most recently
from
September 4, 2026 07:08
fb1c762 to
f137ec8
Compare
|
|
❌ The last analysis has failed. |
pankalog
marked this pull request as ready for review
September 4, 2026 09:29
pankalog
force-pushed
the
mtls/2-broker-mtls
branch
from
November 12, 2026 09:29
f137ec8 to
a958c79
Compare
|
2 of 3 tasks
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.



Description
Adds a second Artemis acceptor requiring client certificates, on port 8884.
Key material comes from
OpenRemoteSSLContextFactoryvia the Artemis SPI: it prefers the proxy certificate directory under the storage dir, so the deployment serves the same haproxy-managed cert it already has, falling back to a configured keystore.Trust material always comes from the configured truststore. Deriving it from the server's own chain would make the letsencrypt intermediate an issuer of client certificates; falling back to the JDK CA bundle would accept any publicly issued client-auth cert. An acceptor requiring client auth with no usable truststore fails instead.
The acceptor is only added when a server certificate and a readable truststore are present, otherwise it is left out with a log. That lets
OR_MQTT_MTLS_DISABLEDdefault tofalsesafely.Artemis holds an acceptor's
SSLContextonce built, so on certificate renewal the broker clears the factory cache and reloads the acceptor.How to verify
MQTTBrokerMTLSTestdrives a live acceptor: a cert from the truststore's CA connects, an identical one from another CA never does, and with the server cert issued by a different CA than the devices, only the device CA is accepted.OpenRemoteSSLContextFactoryTestcovers source resolution. Certificates are generated byMTLSCertificateHelper, so no private key is committed.Checklist