New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication with TLS Certificate #83
Comments
Maybe this is a question for @chkr1011, I need to check this. |
The thing is that because Version A of Sparkplug is deprecated (but some still want to use it), I have marked the features as deprecated already. Since I have |
Thank you for the updates provided! |
@SeppPenner Do you still need my input here? |
Are there examples in the MQTTnet repo? If yes, then I don't need further information, I guess. |
@chkr1011 Like this, I guess:
WebSocketServer options: if (this.Options.MqttWebSocketOptions is null)
{
builder.WithTcpServer(this.Options.BrokerAddress, this.Options.Port);
}
else
{
builder.WithWebSocketServer(o =>
o.WithCookieContainer(this.Options.MqttWebSocketOptions.CookieContainer)
.WithCookieContainer(this.Options.MqttWebSocketOptions.Credentials)
.WithProxyOptions(this.Options.MqttWebSocketOptions.ProxyOptions)
.WithRequestHeaders(this.Options.MqttWebSocketOptions.RequestHeaders)
.WithSubProtocols(this.Options.MqttWebSocketOptions.SubProtocols)
.WithUri(this.Options.BrokerAddress)
.WithKeepAliveInterval(this.Options.MqttWebSocketOptions.KeepAliveInterval)
.WithUseDefaultCredentials(this.Options.MqttWebSocketOptions.UseDefaultCredentials)
);
}
TLS options: if (this.Options.MqttTlsOptions is not null)
{
builder.WithTlsOptions(this.Options.MqttTlsOptions);
} |
Sorry but I am a little bit lost here. Which changes do you want me to review? All of them? Or do you want me to have a look at a certain change? 😕 |
@chkr1011 Just the changes in the comment (above), please :) Since these are the only options that I can set with MqttNet, I guess, they're correct already. |
Hello, thank you for the continuous bug fixes and updates provided.
I was wondering if anyone has tried connecting via TLS certificates (I use these certificates to connect to a RabbitMQ).
I'll provide some lines of code that I use to attempt the connection without a username and password, but I'm getting an "Empty Stream" error which seems to be caused by the lack of TLS handshake. In addition, it signals that MqttClientOptionsBuilderTlsParameters is obsolete.
Any advice?
Thank you very much
The text was updated successfully, but these errors were encountered: