-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CERTIFICATE_VERIFY_FAILED but openssl s_client works with same ca certs file #573
Comments
Could you check if it works with v7.2.0, please? |
Since you are using the latest openssl (version 1.1.1), you are facing jazzband/imaplib2#5. As a work-around, you could force the use of TLS 1.2, using the |
@iliastsi Nice catch! |
I check and the problem is present both in offlineimap 7.0.12 (In debian stable repository) and 7.2.1 (debian sid repository). Adding "ssl_version = tls1_2" allows to download emails but generates the message: |
Thanks everyone. Setting @pprw I don't get the OAUTH error you reported. I do, however, get
That's not shipping clear passwords, is it? |
That's PLAIN authentication in the SSL tunnel. I think Google does not allow clear PLAIN authentication, BTW. |
Yes. Your configuration is now with SSL enabled "only". Offlineimap first tries XOAUTH2. You can avoid this error by setting the |
With
|
Hi! I have added
This is my
|
See OfflineIMAP/offlineimap#573 for details.
I seem to still get the error, despite applying the fixes that have been suggested. This is the same whether I run on the next or master branch. Context.
https://myaccount.google.com/lesssecureapps - enabled To get a Refresh Token I had to run these commands:
Local config:
Running
Note: Prior to enabling less secure apps, I got a slightly different error:
|
General informations
offlineimap -V
): offlineimap v7.2.1, imaplib2 v2.57 (system), Python v2.7.15, OpenSSL 1.1.1-pre9 (beta) 21 Aug 2018Configuration file offlineimaprc
pythonfile (if any)
Logs, error
OpennSSL connection:
Pre-sync hook (presync.sh; not relevant)
Steps to reproduce the error
With this config, run
offlineimap -dALL
Note that
SSL_CERT_DIR="" openssl s_client -connect imap.gmail.com:993 -showcerts -CAfile /etc/ssl/certs/ca-certificates.crt
successfully verifies the certificate with the same ca-certificates.crt as defined in.offlineimaprc
.The text was updated successfully, but these errors were encountered: