bluerhinos / phpMQTT

a simple php class to connect/publish/subscribe to a MQTT broker
Other
773 stars 460 forks source link

add encryption for connection #54

Closed Rotzbua closed 3 years ago

Rotzbua commented 6 years ago

Thanks for the library! I needed some more utility and added some functions for encrypted connections.

Additions

add encryption for connection add timeout config add IPv4/6 force

Change

fix "tls" instead of "ssl" for ca connections, "tls" only allows tls1.0 but "ssl" uses newer versions

Backwards compatibility

Had to increase to php7, older php versions too mature for useful crypto stuff.

Rotzbua commented 3 years ago

Problems still unfixed, but no incentive to resolve merge conflicts. For those reasons closed.