From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: bug#16253: bug#11267: bug#15057: 24.3.50; TLS error with reasonably high gnutls-min-prime-bits, bug#11267: 24.0.95; gnutls.c: [0] (Emacs) fatal error: The Diffie-Hellman prime sent by the server is not acceptable (not long enough). Date: Tue, 11 Feb 2014 09:21:58 -0500 Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos Message-ID: <87mwhx686x.fsf@lifelogs.com> References: <87iozfl001.fsf@thinkpad.tsdh.org> <87li24zpg1.fsf@flea.lifelogs.com> <87lhxx6kr0.fsf@building.gnus.org> <871tzbaf1n.fsf@lifelogs.com> <874nsi12ng.fsf@niu.edu> <6mwr5d6l6e.fsf@fencepost.gnu.org> <20367.61741.640831.184941@gargle.gargle.HOWL> <20368.16452.379860.520133@gargle.gargle.HOWL> <87k4152t8j.fsf@lifelogs.com> <20375.1898.39520.582160@gargle.gargle.HOWL> <87ob2f8zdr.fsf@lifelogs.com> <21240.16957.410641.502622@gargle.gargle.HOWL> <87ppmvwu5h.fsf@building.gnus.org> <87d2iv8ck8.fsf@lifelogs.com> <87ppmup75m.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392128597 14691 80.91.229.3 (11 Feb 2014 14:23:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2014 14:23:17 +0000 (UTC) Cc: Nikos Mavrogiannopoulos , Roland Winkler , 15057@debbugs.gnu.org, 16253@debbugs.gnu.org, 11267@debbugs.gnu.org, Tassilo Horn To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 11 15:23:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WDEF7-0001jO-Fw for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 15:23:21 +0100 Original-Received: from localhost ([::1]:33862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDEF7-0000IZ-0C for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 09:23:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDEEy-0000IF-4q for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 09:23:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDEEq-0006N6-2K for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 09:23:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDEEp-0006Mu-VQ for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 09:23:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WDEEp-0001Qe-MQ for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 09:23:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Feb 2014 14:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16253-submit@debbugs.gnu.org id=B16253.13921285255377 (code B ref 16253); Tue, 11 Feb 2014 14:23:03 +0000 Original-Received: (at 16253) by debbugs.gnu.org; 11 Feb 2014 14:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:46069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDEDo-0001OA-P0 for submit@debbugs.gnu.org; Tue, 11 Feb 2014 09:22:04 -0500 Original-Received: from mail-qc0-f171.google.com ([209.85.216.171]:42541) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDEDj-0001Nm-DT for 16253@debbugs.gnu.org; Tue, 11 Feb 2014 09:21:59 -0500 Original-Received: by mail-qc0-f171.google.com with SMTP id n7so13211587qcx.30 for <16253@debbugs.gnu.org>; Tue, 11 Feb 2014 06:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=6Vm7HcEWYE9bypWOgxlLIqMT9QOLbjGfkGh21mHiECo=; b=VDZ2OUZq5ue/+pJx6WWqxqBJ+4Lgu5V8/2w13PPSwG6xA8HUbCeFuEn/UFOvJWTNjZ pifcEnoIyyanTW5lZR52E2i4B7MIUM/DRP5sAoQYI7t5ZFYNqhvyPis1Le1t32s+G+Vn XfbLUPq8BESwhOiOWMCAIwDeH2mOligCfFiHg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=6Vm7HcEWYE9bypWOgxlLIqMT9QOLbjGfkGh21mHiECo=; b=ZpuzPWqlMnWs9HOTB+NNnsOYAygE1rXswBEx24GtXqM2C1qWkVFtCYXXAaB8shAjsU 1CuRvwhPz8E8JU7leL+SrEcKDyc2/YaTWM+jxLhTNQfKMB5MCrwPtaRxElHLLnxPvz22 F+aCuwsuAbr6maxjx+0sKzZMxnmsw5X4l6yQUtqbej3GVv28UyGszItnEb41Y5l1aC5g dDr4JsIzIzPVaq2Zh+0PfXxYz6iqdOe1nkdyooWUT2saunKsLriBKPzqv3/nhJRhK/YA cAbBFxkv9zki2SUOBqNgSv7d87Uxrs49ZPmawNCwVEhpn2L/MbnJjdIuwMP48QSRYBWB ZyOQ== X-Gm-Message-State: ALoCoQkzBqtjmj9+gwF2+cbyFrVZAI5PBwPFf7ahWYcqmBXqEO/5TZzNjh4a8nSPGSR/SrXyGbJ4 X-Received: by 10.224.167.19 with SMTP id o19mr46890414qay.77.1392128509928; Tue, 11 Feb 2014 06:21:49 -0800 (PST) Original-Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id a5sm53271625qae.2.2014.02.11.06.21.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Feb 2014 06:21:49 -0800 (PST) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87ppmup75m.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Mon, 10 Feb 2014 21:09:25 -0800") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85375 Archived-At: On Mon, 10 Feb 2014 21:09:25 -0800 Lars Ingebrigtsen wrote: LI> (Emacs, being Emacs, might offer as an option a way to restrict all TLS LI> connections to a smaller set of algorithms/levels, but that should not LI> be the default.) I think it should, as long as we make it easy to drop down the security, as I described: >> * how to try allowing the less-secure connection (perhaps a simple >> command to automate this, or even a clickable button, would be nicer >> than asking the user to `customize-variable'). The original discussion >> sort of settled on magically reopening the connection with less security >> but I think that might be a disservice to the users. LI> We would always try to get the most secure TLS connection possible, so I LI> don't quite understand "reconnect"... So my proposal is simply to provide two buttons "allow host X to connect with lower DHE security [temporarily] [permanently]" and when the button is clicked, customize `gnutls-algorithm-priority' to allow DHE to that specific host. `gnutls-negotiate' has to be changed slightly and the connection rejection from insecure hosts will need to be handled in gnutls.c and gnutls.el. I think that's as seamless as we can make it, especially noting that `gnutls-min-prime-bits' is deprecated since GnuTLS 3.1.7 (see http://www.gnutls.org/manual/gnutls.html#index-gnutls_005fdh_005fset_005fprime_005fbits). If we provide that simple UI, plus some help messaging, I think we can disable DHE by default. Based on Nikos' explanation, it seems to be the best way forward. Ted