Closed prince-git-0000 closed 6 months ago
I don't see any indication in the SDK documentation that parameters to the device client constructor are intended to pass-through to the underlying TLS options. You could argue that it might be nice, but that's not the contract established 8 years ago.
The SDK explicitly forces TLS verification and I don't see anything wrong with that beyond a lack of flexibility if using a non-AWS endpoint (self-signed certs, etc...). If you're using a non-AWS endpoint then the SDK doesn't provide you with much useful and you're probably better off using mqtt-js directly.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I am writing below code to connect a device
Expected Behavior
this should be return rejectUnauthorized: false
Current Behavior
in log it is providing rejectUnauthorized as true
Reproduction Steps
provide solution for that
Possible Solution
No response
Additional Information/Context
No response
SDK version used
^2.2.13
Environment details (OS name and version, etc.)
windows 11 node version 18.12.0