Open velleto opened 6 years ago
We won't check for the SSL validity when using the cert_fingerprint of the certificate. Certificate validation is done with the sslcacertfile option.
See https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf#L748
This is an interesting security issue.
imaplib2.py
). When your server supports DANE TLS (cert fingerprint for IMAP port in DNSSEC), you can skip the maintenance work of having to update server TLS cert fingerprint to our IMAP client config.@nicolas33
We won't check for the SSL validity when using the cert_fingerprint of the certificate. Certificate validation is done with the sslcacertfile option.
In that same configuration file it states that:
I understand this to mean that: first the certificate will be verified, and then the fingerprint checked, returning an error if either fails.
I have configured the sslcacertfile
and cert_fingerprint
. Have I done so incorrectly, or have I misunderstood the excerpt above?
If there has been a misunderstanding, I would suggest changing that wording to be less ambiguous.
General informations
OfflineIMAP still syncs with mail server, even if their SSL certificate has been revoked. I realise that this may expected behavior, or be the fault of my poor configuration of SSL features (below).
I stumbled across this, when my university changed their certificates and had revoked ones online for a short maintenance time frame. When the new ones were installed, OfflineIMAP refused to connect, as the fingerprint had changed (as expected and documented).
offlineimap -V
): offlineimap v7.1.5, imaplib2 v2.57 (system), Python v2.7.15rc1, OpenSSL 1.1.0g 2 Nov 2017Configuration file offlineimaprc
pythonfile (if any)
Logs, error
Steps to reproduce the error