Skip to content

Add support for certificate based MQTT authentication#3610

Open
jnsjll wants to merge 1 commit intoOPCFoundation:masterfrom
jnsjll:jnsjll-pubsub-certificate-based-authentication
Open

Add support for certificate based MQTT authentication#3610
jnsjll wants to merge 1 commit intoOPCFoundation:masterfrom
jnsjll:jnsjll-pubsub-certificate-based-authentication

Conversation

@jnsjll
Copy link
Contributor

@jnsjll jnsjll commented Mar 12, 2026

Proposed changes

Preserve a client certificate's private key in MQTT.net TLS options to enable certificate based authentication.

Related Issues

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Test enhancement (non-breaking change to increase test coverage)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc.
  • I have signed the CLA.
  • I ran tests locally with my changes, all passed.
  • I fixed all failing tests in the CI pipelines.
  • I fixed all introduced issues with CodeQL and LGTM.
  • I have added tests that prove my fix is effective or that my feature works and increased code coverage.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

Further comments

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 66.27%. Comparing base (d25caff) to head (fb3fcc9).
⚠️ Report is 140 commits behind head on master.

Files with missing lines Patch % Lines
...es/Opc.Ua.PubSub/Transport/MqttPubSubConnection.cs 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3610       +/-   ##
===========================================
+ Coverage   51.86%   66.27%   +14.40%     
===========================================
  Files         370      459       +89     
  Lines       78618    97819    +19201     
  Branches    13650    16382     +2732     
===========================================
+ Hits        40779    64827    +24048     
+ Misses      33705    27926     -5779     
- Partials     4134     5066      +932     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CLAassistant
Copy link

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

@romanett romanett requested a review from mrsuciu March 12, 2026 15:10
@jnsjll jnsjll closed this Mar 13, 2026
@jnsjll jnsjll force-pushed the jnsjll-pubsub-certificate-based-authentication branch from 67e2b04 to eae41a5 Compare March 13, 2026 08:43
@jnsjll jnsjll reopened this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PubSub] Certificate based MQTT authentication not possible

2 participants