Actions
Feature #15594
closed[PATCH] net/imap: support SNI
Description
This fixes connecting using TLS 1.3 to imap.gmail.com
See https://github.com/ruby/openssl/issues/238 and https://github.com/ruby/ruby/pull/2077
Files
Updated by znz (Kazuhiro NISHIYAMA) almost 6 years ago
- Status changed from Open to Assigned
- Assignee set to shugo (Shugo Maeda)
Updated by Keruspe (Marc-Antoine Perennou) almost 6 years ago
- File 0001-net-imap-support-SNI.patch 0001-net-imap-support-SNI.patch added
- File deleted (
0001-net-imap-support-SNI.patch)
Updated by knu (Akinori MUSHA) over 5 years ago
I think this is necessary for the library to be able to connect to the Gmail server which now requires SNI.
Updated by knu (Akinori MUSHA) over 5 years ago
Maybe POP3 & SMTP need this too.
Updated by knu (Akinori MUSHA) over 5 years ago
Here's a possible workaround:
require 'net/protocol'
class Net::Protocol
module ForceSNI
def ssl_socket_connect(*)
@sock.hostname = @host if @sock.respond_to? :hostname=
super
end
end
prepend ForceSNI
end
Updated by shugo (Shugo Maeda) over 5 years ago
- Status changed from Assigned to Closed
Applied in changeset trunk|r67488.
Support SNI
This fixes connecting using TLS 1.3 to imap.gmail.com
[Fix GH-2077] [Feature #15594]
From: Marc-Antoine Perennou Marc-Antoine@Perennou.com
Updated by naruse (Yui NARUSE) over 5 years ago
- Related to Bug #15769: Backport r67563: SNI is not enabled in Net::IMAP added
Updated by hone (Terence Lee) over 5 years ago
- Related to Bug #16028: Backport r67563: SNI is not enabled in Net::IMAP added
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0