MQTT Client Accept all certs

How can I do something similar to setting custom SSL context in PAHO and using Custom SSLSockketFactory to trust all certificates? There is key manager and trust manager to allow connection using self-signed certificates. But what if I want to ignore the trust store and accept all certificates? Is there any way to achieve this?

Hello @nishan

Welcome to the HiveMQ community forum, and thank you for your interest in MQTT and HiveMQ. To assist you better, could you please specify whether you are using the HiveMQ Cloud broker or a self-managed HiveMQ broker?

Regarding your inquiry about ignoring the key store/trust store, it’s essential to note that we do not recommend bypassing SSL validation when the MQTT broker requires it. In our HiveMQ client library, there are no direct options for such behavior.

Kind regards,
Sheetal from HiveMQ Team