Add optional TLS authenticate to support HTTPS and CA