You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configured for client certificates with required_certificate true, capath and protocol websockets, mosquitto sends a TLSV1_ALERT_UNKNOWN_CA / SSL alert number 48 when a client initiates the connection with a certificate issued by a trusted CA (ie, a certificate issued by a CA whose certificate is present in the capath mosquitto option).
If the client doesn't provide a certificate, I encounter a TLSV13_ALERT_CERTIFICATE_REQUIRED as expected.
If I use protocol mqtt instead of protocol websockets, the connection works as expected.
I've also tried with an without an intermediate cert on the client side and that doesn't seem to change the outcome.
The text was updated successfully, but these errors were encountered:
This appears to be a limitation in libwebsockets. I created issue warmcat/libwebsockets#3276 on this topic.
At the moment, it doesn't appear that there is any other way to load trusted client CAs than through ssl_ca_filepath, which only accepts a file.
Tested on Linux (Ubuntu 24.04)
When configured for client certificates with
required_certificate true
,capath
andprotocol websockets
, mosquitto sends aTLSV1_ALERT_UNKNOWN_CA
/SSL alert number 48
when a client initiates the connection with a certificate issued by a trusted CA (ie, a certificate issued by a CA whose certificate is present in thecapath
mosquitto option).If the client doesn't provide a certificate, I encounter a
TLSV13_ALERT_CERTIFICATE_REQUIRED
as expected.If I use
protocol mqtt
instead ofprotocol websockets
, the connection works as expected.I've also tried with an without an intermediate cert on the client side and that doesn't seem to change the outcome.
The text was updated successfully, but these errors were encountered: