首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OfflineIMAPS和CA证书

OfflineIMAPS和CA证书
EN

Unix & Linux用户
提问于 2016-09-17 11:30:28
回答 1查看 4.5K关注 0票数 7

这个问题是关于离线映射的,但是在给定的机会下,我想了解更多关于ssl证书及其处理的资源。

我下载了最新的offlineimaps (7.0.6),在完成最小配置之后,我运行该命令,得到以下错误:

代码语言:javascript
复制
Account sync Gmail:
 *** Processing account Gmail
 Establishing connection to imaps://imap.gmail.com:993 (GmailRemote)
 ERROR: No CA certificates and no server fingerprints configured.  You must configure at least something, otherwise having SSL helps nothing.
 *** Finished account 'Gmail' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: No CA certificates and no server fingerprints configured.  You must configure at least something, otherwise having SSL helps nothing.

Traceback:
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 271, in syncrunner
    self.__sync()
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 334, in __sync
    remoterepos.getfolders()
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/repository/IMAP.py", line 448, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/imapserver.py", line 511, in acquireconnection
    af=self.af,
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 194, in __init__
    super(WrappedIMAP4_SSL, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/bundled_imaplib2.py", line 2135, in __init__
    IMAP4.__init__(self, host, port, debug, debug_file, identifier, timeout, debug_buf_lvl)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/bundled_imaplib2.py", line 357, in __init__
    self.open(host, port)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplibutil.py", line 201, in open
    "having SSL helps nothing.", OfflineImapError.ERROR.REPO)

我想从我的gmail帐户下载所有的邮件,然后想出如何与mutt一起阅读它。但首先,我想要做的是有一个文件夹,里面有我所有的邮件。

这是我的.offlineimaprc

代码语言:javascript
复制
[general]
accounts = Gmail

[Account Gmail]
localrepository = GmailLocal
remoterepository = GmailRemote
ssl = yes
synclabels = yes

[Repository GmailLocal]
type = Maildir
localfolders = ~/Mail/Gmail

[Repository GmailRemote]
type = IMAP
remotehost = imaps://imap.gmail.com
remoteuser = [MY_E-MAIL]@gmail.com
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2017-07-03 05:47:44

在不太遥远的过去的某个时候,offlineimap开始验证SSL证书(是的,显然不是以前)。您需要手动配置每个远程存储库,以指向证书列表,而不是做明智的事情,默认使用默认的系统信任存储库。在Debian/Ubuntu系统上,Repository GmailRemote中的以下设置应该可以做到这一点:

代码语言:javascript
复制
sslcacertfile = /etc/ssl/certs/ca-certificates.crt

在其他系统上,文件可能位于不同的位置;web搜索应该找到有关信任存储的详细信息。

票数 9
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/310503

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档