オフラインIMAPSおよびCA証明書

オフラインIMAPSおよびCA証明書

この質問はオフラインマップに関するものですが、機会が与えられた場合は、SSL証明書とその完全な処理の詳細を知ることができるリソースが必要です。

最新のオフラインマップ(7.0.6)をダウンロードし、最小設定を完了した後にコマンドを実行しましたが、次のエラーが発生しました。

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です。

[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

ベストアンサー1

近い将来、オフラインimapはSSL証明書の検証を開始します(例えば、以前はそうではなかったようです)。合理的なタスクを実行し、デフォルトのシステムトラストストアをデフォルトに設定するのではなく、証明書のリストを指すように各リモートストアを手動で構成する必要があります。 Debian/Ubuntu システムでは、次の設定でRepository GmailRemote問題が解決します。

sslcacertfile = /etc/ssl/certs/ca-certificates.crt

他のシステムでは、ファイルが別の場所にある可能性があります。 Web 検索により、トラストストアが保存されている場所の詳細が表示されます。

おすすめ記事