To test communication over SSL, for instance to debug a protocol stack or to check configuration of a server (or even a client), use openssl:
openssl s_client -connect <server>:<port>