Configuring applications to communicate using TLS