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#16784: 24.3; Problems opening NNTP connection: failing starttls because of a non-verified certificate Date: Thu, 20 Mar 2014 10:48:25 -0400 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: <874n2t3ozq.fsf@lifelogs.com> References: <86bny5r5lj.fsf@dod.no> <87ob24ctq3.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395326887 8539 80.91.229.3 (20 Mar 2014 14:48:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 14:48:07 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 16784@debbugs.gnu.org To: sb@dod.no Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 15:48:17 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 1WQeGW-0006sA-7X for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 15:48:16 +0100 Original-Received: from localhost ([::1]:47418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeGV-0004EA-Qf for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 10:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeGN-00046I-N1 for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:48:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQeGI-0004rv-UF for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:48:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQeGI-0004rX-RT for bug-gnu-emacs@gnu.org; Thu, 20 Mar 2014 10:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WQeGH-00086I-Ux; Thu, 20 Mar 2014 10:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 20 Mar 2014 14:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16784 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 16784-submit@debbugs.gnu.org id=B16784.139532685431104 (code B ref 16784); Thu, 20 Mar 2014 14:48:01 +0000 Original-Received: (at 16784) by debbugs.gnu.org; 20 Mar 2014 14:47:34 +0000 Original-Received: from localhost ([127.0.0.1]:42400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQeFp-00085b-Qj for submit@debbugs.gnu.org; Thu, 20 Mar 2014 10:47:34 -0400 Original-Received: from mail-qc0-f170.google.com ([209.85.216.170]:65129) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQeFn-00085O-Bg for 16784@debbugs.gnu.org; Thu, 20 Mar 2014 10:47:32 -0400 Original-Received: by mail-qc0-f170.google.com with SMTP id e9so1084556qcy.29 for <16784@debbugs.gnu.org>; Thu, 20 Mar 2014 07:47:30 -0700 (PDT) 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=2v5COIQyaNxoM8aRtKFYvSNMIO04ZzpO+LBy0JJ1PPk=; b=h0cHwsMQ41d9AFW6E3dN0Mg84VxsWGO8Z6ZPCrmdG2mO8FoipX/8fneynALzdPlhcH faj47nIbMd5NCGgu58ZXr/Am2kXfiQFwtuMPnUsHsa2d7fxPlFse5W0NgusY6hIYfjzN Yi3cb+yYFPftAqEzi5ST06kLAUckMJ6lp0Nxs= 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=2v5COIQyaNxoM8aRtKFYvSNMIO04ZzpO+LBy0JJ1PPk=; b=OKZ/PiAetw7HwrXKVst31Jx5BKH40B5p1IXc+Ef0C80CE3DXvqbmuMBf/RbrduvFxN g/Q3S7G/2WaVLagYCuorpPs1sYd32ZjVlNTzSm/n8PxujWmlMofJmfRi76TnslbzQbHa tMxvhHoz6rwII/XWdZ+NAiiVPfVdZEIWVdt/Grk3OAy8LtuqQiQBDMjvf4M3Xc2I4ZjS H3q/Q+U1ffOl7gjwgPHoQuDqUyR7Rj6OXO7JaM6mMIo3B1DlsfUdaKkSE7S/FnR3AqJd vvPcJPHHQ4YJtWsjLBenDYZoMm/S6KVA/TcgAWdcY/G4OhAA91Z/f2HtDiHG5lXF0fUL +SFw== X-Gm-Message-State: ALoCoQmoJSJbSEzQSV1luYWrP1LH0ML1meiKFQDMs3t6dBEQzi/l+PRW33syfhWdCrZKZbpzi0kx X-Received: by 10.229.66.202 with SMTP id o10mr50820708qci.7.1395326850582; Thu, 20 Mar 2014 07:47:30 -0700 (PDT) Original-Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id x5sm3723413qaj.9.2014.03.20.07.47.29 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 07:47:29 -0700 (PDT) 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: <87ob24ctq3.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 18 Feb 2014 10:43:00 -0500") 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:87024 Archived-At: On Tue, 18 Feb 2014 10:43:00 -0500 Ted Zlatanov wrote: TZ> On Mon, 17 Feb 2014 18:50:32 +0100 sb@dod.no wrote: s> Entering news.gmane.no nntp groups in gnus fails on Windows, because it s> tries to upgrade the connection using STARTTLS and fails because the s> news.gmane.org certificate is self signed. SB> I would like one of the following solutions: SB> 1. The possibility to switch off the attempted upgrade to STARTTLS for SB> NNTP connections I think Lars has to give an opinion here. SB> 2. The possibility to tell GNU-TLS not to be so stringent about SB> certificate verification The latest Emacs trunk has this: (defcustom gnutls-verify-error nil "If non-nil, this should be a list of checks per hostname regex or t." :group 'gnutls :version "24.4" :type '(choice (const t) (repeat :tag "List of hostname regexps with flags for each" (list (choice :tag "Hostname" (const ".*" :tag "Any hostname") regexp) (set (const :trustfiles) (const :hostname)))))) So basically customize that variable and add :trustfiles and :hostname for the respective verifications, or nil to disable them. Also note that internally, we use some default flags for `gnutls-negotiate'. From the docstring: VERIFY-FLAGS is a numeric OR of verification flags only for `gnutls-x509pki' connections. See GnuTLS' x509.h for details; here's a recent version of the list. GNUTLS_VERIFY_DISABLE_CA_SIGN = 1, GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT = 2, GNUTLS_VERIFY_DO_NOT_ALLOW_SAME = 4, GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT = 8, GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD2 = 16, GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 32, GNUTLS_VERIFY_DISABLE_TIME_CHECKS = 64, GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS = 128, GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT = 256 It must be omitted, a number, or nil; if omitted or nil it defaults to GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT. This is the current default, except as modified by the GnuTLS priority string. I would expect callers such as Gnus to modify this, but not normal users. Ted