Using HTTPS and TLS to secure external access