Project

General

Profile

Actions

Feature #15594

closed

[PATCH] net/imap: support SNI

Added by Keruspe (Marc-Antoine Perennou) about 2 years ago. Updated about 2 years 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 2 years ago

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

Updated by Keruspe (Marc-Antoine Perennou) about 2 years ago

Updated by knu (Akinori MUSHA) about 2 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) about 2 years ago

Maybe POP3 & SMTP need this too.

Updated by knu (Akinori MUSHA) about 2 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
Actions #6

Updated by shugo (Shugo Maeda) about 2 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

Actions #7

Updated by naruse (Yui NARUSE) almost 2 years ago

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

Updated by hone (Terence Lee) over 1 year ago

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

Also available in: Atom PDF