Make TLS support work
Merge pull request #26 from jasperla/tls

Make TLS support work