Add TLS support for client-only apps