njh/ruby-mqtt — pull request #36 by sborsje (2014-02-10 16:17:08+00:00)
Title: Added TLS support

This adds support for TLS. Simply drop in a client certificate and a keyfile (+ optionally a ca certificate):

```ruby
c = MQTT::Client.connect({
remote_host: "127.0.0.1",
tls_cafile: "./certs/rootCA.crt",
tls_certfile: "./certs/client.crt",
tls_keyfile: "./certs/client.key"
})
```