added tls/ssl, and configuration file