Project

General

Profile

Actions

Feature #15594

closed

[PATCH] net/imap: support SNI

Added by Keruspe (Marc-Antoine Perennou) over 5 years ago. Updated over 5 years ago.

Status:
Closed
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 2 (0 open2 closed)

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) over 5 years ago

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

Updated by Keruspe (Marc-Antoine Perennou) over 5 years ago

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
Actions #6

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

Actions #7

Updated by naruse (Yui NARUSE) over 5 years ago

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

Updated by hone (Terence Lee) over 5 years ago

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0