[Mosquitto-users] Best practices for tls_set in Python

2013-02-05 Thread Jack O'Connor
The tls_set API requires a path to a certificate authorities file. I can download a file of the right type from mozilla or somewhere, but I'm wondering if it's really appropriate to include my own CA list in the project. Is there a standard way to get this information from the OS instead, for examp

Re: [Mosquitto-users] Best practices for tls_set in Python

2013-02-05 Thread Alexander Bolotnov
You can symlink or copy it to /etc/ssl/cert for that. There's probably a bunch of certs already anyway :) Sasha Bolotnov www.bolotnov.info On Tue, Feb 5, 2013 at 4:12 PM, Jack O'Connor wrote: > The tls_set API requires a path to a certificate authorities file. I can > download a file of the

Re: [Mosquitto-users] python daemon - on_message callback not fired

2013-02-05 Thread Alexander Bolotnov
Loop (any of the three options) is causing exception: pi@raspberrypi ~/tmp $ ./Mosquitto.py start Class initialization... Creating an instance of MQ client... Successfully created MQ client... Subscribing to topics... Failed to subscribe to topic "voice/all": (0, 1) Failed to subscribe to topic "c

Re: [Mosquitto-users] python daemon - on_message callback not fired

2013-02-05 Thread Roger Light
It looks like this is an interaction with daemon.runner. I don't know what is causing it yet, but the modified example below works fine. Cheers, Roger #!/usr/bin/python import mosquitto import config import time class Client(): def __init__(self): self.mc = None print('Clas

Re: [Mosquitto-users] python daemon - on_message callback not fired

2013-02-05 Thread Alexander Bolotnov
I have just finished re-doing my code to pretty much the same thing. Thanks for assistance. Sasha Bolotnov www.bolotnov.info On Wed, Feb 6, 2013 at 12:14 AM, Roger Light wrote: > It looks like this is an interaction with daemon.runner. I don't know > what is causing it yet, but the modified