Sometimes the SSL/TLS handshake is not working. Just using openssl s_client -connect <ip>:<port> hangs without printing the server certificate when TLS is enabled.
Ironically hitting enter on the keyboard will sometimes clear this condition temporarily.