OpenTSDB/tcollector — pull request #186 by broeng (2014-12-01 13:34:05+00:00)
Title: Add TLS encryption support for TSD connections

- Enable TLS enctryption on TSD connections with command line
toggle --tls or --ssl. Since OpenTSDB does not support SSL,
this requires a SSL proxy in front of OpenTSDB, such as
stunnel or similar.

- Prefers TLS v1.2 if available (since python 2.7.9), uses
TLS v1 otherwise

- Add valid_certificate_name convenience method to utils lib,
for verifying certificate name against hostname. Allows
wildcard (*) in subdomains, but not in TLD or HOST parts.
I.e. *.example.tld allowed

- Add command line option --ca-certs for specifying the path
to the system ca-certificates file. Checks existience on
start up. Defaults to /etc/ssl/certs/ca-certificates.crt

- Add EXTRA_ARGS option to init scripts, for specifying extra
options like --tls and --ca-certs