OpenSSL is a security package supporting the TLS protocol. (SSL is functionally obsolete.)
openssl s_client -connect hostname.domain.com:imaps – test a connection with SSL