astrorafael / twisted-mqtt

MQTT Client protocol for Twisted.
MIT License
30 stars 11 forks source link

Is ssl connection working? #13

Closed wexi closed 4 years ago

wexi commented 4 years ago

Hi,

twisted-mqtt works well for me with 'tcp:host=test.mosquitto.org:port=1883' but not with 'ssl:host=test.mosquitto.org:port=8883:caCertsDir=/etc/ssl/certs' and there is no error message.

Has it been tested? I'm using the latest twisted and twisted-mqtt.

Thanks, Enoch.

astrorafael commented 4 years ago

Hi Enoch,

No, it has never been tested with TLS. Our devices cannot afford it.

In theory, this is an independent aspect, so it "should work". I would have to do some tests, but unfortunately I have a heavy load of work right now. Anyone volunteers to have a look ai it?

aunsbjerg commented 4 years ago

I have twisted-mqtt working with SSL. For my setup, using a connection string like this works:

f"ssl:host={hostname}:port={port}:privateKey={private_key}:certKey={cert_key}"

astrorafael commented 4 years ago

Good to know :-) I proceed and close the issue