I'm trying to access an Outlook.com IMAP server via the commandline using openSSL. Specifically, I want to access it using OAuth2, but am unable to do so. So far, I am able to access the server without oAuth by doing:
openssl s_client -crlf -connect imap-mail.outlook.com:993
tag login username password
However, when I do the following:
openssl s_client -crlf -connect imap-mail.outlook.com:993
tag AUTHENTICATE XOAUTH2
+
{base64 encoded string with username & access token}
the command line freezes, the connection is lost and the prompt is reset. I'm copying and pasting the base64 encoded string into the commandline. I'm also following the instructions for this process:http://blogs.office.com/2013/09/12/outlook-com-now-has-imap/
Can anyone tell me what I might be doing incorrectly?