【问题标题】:Access IMAP server from Command line Using OpenSSL and OAuth2使用 OpenSSL 和 OAuth2 从命令行访问 IMAP 服务器
【发布时间】:2014-04-14 01:01:08
【问题描述】:

我正在尝试使用 openSSL 通过命令行访问 Outlook.com IMAP 服务器。具体来说,我想使用 OAuth2 访问它,但我无法这样做。到目前为止,我可以通过以下方式访问没有 oAuth 的服务器:

openssl s_client -crlf -connect imap-mail.outlook.com:993
tag login username password

但是,当我执行以下操作时:

openssl s_client -crlf -connect imap-mail.outlook.com:993
tag AUTHENTICATE XOAUTH2
+
{base64 encoded string with username & access token}

命令行冻结,连接丢失,提示被重置。我正在将 base64 编码的字符串复制并粘贴到命令行中。我也在遵循这个过程的说明:http://blogs.office.com/2013/09/12/outlook-com-now-has-imap/

谁能告诉我我做错了什么?

【问题讨论】:

标签: macos bash terminal openssl oauth-2.0


【解决方案1】:

服务器可能会在一段时间内等待您的响应。您是否考虑过使用fetchmail

如果您尝试编写自己的客户端,最好使用 python 或 perl。

【讨论】:

    猜你喜欢
    • 2018-05-10
    • 2011-06-25
    • 2018-07-28
    • 1970-01-01
    • 2023-02-22
    • 2013-03-23
    • 2015-11-18
    • 2020-12-29
    • 2019-05-27
    相关资源
    最近更新 更多