dotnet / dotnet/MQTTnet

Is there a sample code that utilizes TLS and can connect to AWS?

Open
#1,885 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Describe your question
I have been trying to set up MQTTNet to work with .pfx files as well as .crt files.

I have set up mosquitto to use TLS 1.3 and it seamlessly works with the test sub and test pub commands (please note that the test clients do not support .pfx files) with some mock certificates I made (ca, client, server)

I am able to both publish and subscribe to the broker.

I saw that in order to connect to the AWS, I need to have the .crt of the root (have it and works) as well as the .pfx certificate (got it, generated via openssl).

Is there a clean, concrete and consise way (eg snippet) in order to establish connection to the local broker?

I am trying locally since I want to mock the environment as close to production as possible.

### Which project is your question related to?

- ManagedClient
- Generic

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names MQTTnet ManagedClient and Generic usage, .pfx and .crt certificates, Mosquitto, TLS 1.3, and AWS, but no repository file, test, or entry point. Start by locating the ManagedClient TLS configuration and existing examples, then determine whether a concise local-broker certificate example can be documented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, csharp
Domain
cloud, networking, security
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.