Bug #12772

Fix check for TLS, not only SSL