GNU TLS

    Client

    Equivalent telnet handling SSL initial connection

    gnutls-cli imap.gmail.com -p 993
    

    source