Reduce and beautify messages related to TLS protocol and trust on keys.

Closes redmine #4684.