Project

General

Profile

Feature #15594

[PATCH] net/imap: support SNI

Added by Keruspe (Marc-Antoine Perennou) about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:91466]

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

0001-net-imap-support-SNI.patch (914 Bytes) 0001-net-imap-support-SNI.patch Keruspe (Marc-Antoine Perennou), 02/27/2019 04:32 PM

Related issues

Related to Ruby master - Bug #15769: Backport r67563: SNI is not enabled in Net::IMAPClosednaruse (Yui NARUSE)Actions
Related to Ruby master - Bug #16028: Backport r67563: SNI is not enabled in Net::IMAPClosedusa (Usaku NAKAMURA)Actions

Updated by znz (Kazuhiro NISHIYAMA) about 1 year ago

  • Assignee set to shugo (Shugo Maeda)
  • Status changed from Open to Assigned
#2

Updated by Keruspe (Marc-Antoine Perennou) 12 months ago

Updated by knu (Akinori MUSHA) 11 months 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) 11 months ago

Maybe POP3 & SMTP need this too.

Updated by knu (Akinori MUSHA) 11 months 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
#6

Updated by shugo (Shugo Maeda) 11 months 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

#7

Updated by naruse (Yui NARUSE) 10 months ago

  • Related to Bug #15769: Backport r67563: SNI is not enabled in Net::IMAP added
#8

Updated by hone (Terence Lee) 7 months ago

  • Related to Bug #16028: Backport r67563: SNI is not enabled in Net::IMAP added

Also available in: Atom PDF