Cannot connect using phpMQTT

I am attempting to connect with phpMQTT ( bluerhinos/phpMQTT) to the free version of HiveMQ Cloud. I have experimented with multiple variants of certificates but cannot get it to connect to HiveMQ. Fails every time (with no error code unfortunately).

I see here Ssl: certificate_verify_failed, that there may be trust issue with the certificates… would this effect phpMQTT?

Could someone walk me through the steps to produce the correct cert file for the free HiveMQ version and how to properly use it to connect from phpMQTT.

Thanks :slight_smile:

Env - PHP8.0 on Linux
Dev - Win 10

Hi @csg ,

Great that you are interested in MQTT and HiveMQ, welcome to the community :wave:

You can download the root certificate here.

I hope this helps.

Dasha from HiveMQ Team

Hi - thanks for the quick response. The FAQ has quite a few posts about certs and I have followed a number of them in attempts to get the correct cert. Can you point me to the specific FAQ post that is the right one and should work? Thanks

I looked again and found another link in the FAQ … that one worked this time.

Thank you :slight_smile: