Connecting graphite with an SSL certificate.

I want to use statsd in an half private context. Statsd daemon only listen in localhost, with an arbitrary key prefix and push data to a mutualised carbon. I don't want to use AMQP protocol for using authentication, so I just put a Stunnel on the Carbon server. I can put a Stunnel client side too, but nodejs play nice with SSL. Here is the patch to handle SSL connection with client certificate to carbon, for statsd.

Here is the original blog post:
http://blog.bearstech.com/2013/03/authenticate-everything-with-ssl.html