Is there support for client certificates over WSS?
Is there support for client certificates over WSS? If not, what would it take to get this feature added? I can try to help
AB#9531294
I was struggling with this too, but if you dig into code you will find this bit: https://github.com/mqttjs/MQTT.js/blob/master/lib/connect/ws.js#L8
I managed to get it to work by constructing options object including following properties:
{
cert: "<pem client certificate>",
key: "<pem client private key>",
rejectUnauthorized: false,
...
}
You could also include them in wsOptions.
Note for maintainers - I would add some example in docs about using wss and client certificates.
This is an automated message to let you know that this issue has gone 365 days without any activity. In order to ensure that we work on issues that still matter, this issue will be closed in 14 days.
If this issue is still important, you can simply comment with a "bump" to keep it open.
Thank you for your contribution.
This issue was automatically closed due to inactivity.