Add tls support: closes #1