How HTTPS, TLS and certificates keep data safe in transit, and how to lock down the network around an app.