Communicates using TLS, only if the service is configured to do so

[#73644290]