Ruby crashes on login to imap.gmail.com (ssl)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ruby-defaults (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I do this:
ruby -r net/imap -e 'p Net::IMAP.
...and get this:
Traceback (most recent call last):
5: from -e:1:in `<main>'
4: from -e:1:in `new'
3: from /usr/lib/
2: from /usr/lib/
1: from /usr/lib/
/usr/lib/
But this is not a certificate error, because when I do this:
openssl s_client -showcerts -connect imap.gmail.com -port 993
... certs verifies as fine
And when I do this in Python:
import imaplib
imap = imaplib.
imap.login(
...it works just fine (reports success on login).
With Ruby I don't even get to login as the connection to imap.gmail.com fails.
I have been using a script to fetch my gmail to local imap server, and this script (https:/
apt-cache policy ruby
ruby:
Installed: 1:2.5.1
Candidate: 1:2.5.1
Version table:
*** 1:2.5.1 500
500 http://
100 /var/lib/
I first thought this was a certificate issue and tried updating ca-certificates, symlinking certs manually, etc. I have had help in debugging this over at irc/freenode/#ruby and one person running Suse could not reproduce it. But another running Ubuntu 18.10 was able to reproduce this.
Status changed to 'Confirmed' because the bug affects multiple users.