From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20960: handling /etc/ssl/certs/ca-bundle.crt by default in emacs Date: Thu, 26 Jan 2017 20:24:16 +0100 Message-ID: <87efzpr5en.fsf@gnus.org> References: <55950B13.1040406@redhat.com> <83d20a1udy.fsf@gnu.org> <87wps1orm3.fsf@gnus.org> <87oada1bbz.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485458791 20114 195.159.176.226 (26 Jan 2017 19:26:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 19:26:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 20960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 26 20:26:26 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpgT-0003kg-RC for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 20:26:13 +0100 Original-Received: from localhost ([::1]:40738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpgZ-0001tV-2z for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 14:26:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWpgM-0001qg-Nj for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:26:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWpgJ-0004qR-6Z for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWpgJ-0004qK-2o for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 14:26:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWpgI-0003xF-Sl; Thu, 26 Jan 2017 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Jan 2017 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20960 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 20960-submit@debbugs.gnu.org id=B20960.148545873115147 (code B ref 20960); Thu, 26 Jan 2017 19:26:02 +0000 Original-Received: (at 20960) by debbugs.gnu.org; 26 Jan 2017 19:25:31 +0000 Original-Received: from localhost ([127.0.0.1]:46017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpfk-0003w6-CX for submit@debbugs.gnu.org; Thu, 26 Jan 2017 14:25:31 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpff-0003vv-Ik for 20960@debbugs.gnu.org; Thu, 26 Jan 2017 14:25:27 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWpfb-0000jK-HY for 20960@debbugs.gnu.org; Thu, 26 Jan 2017 20:25:23 +0100 In-Reply-To: <87oada1bbz.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 28 Dec 2015 17:02:08 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128586 Archived-At: Ted Zlatanov writes: > On Sat, 26 Dec 2015 21:57:24 +0100 Lars Ingebrigtsen wrote: > > LI> Stefan Monnier writes: >>>> that exists, similar to what gnutls-trustfiles does. (Do these two >>>> variables duplicate each other?) >>> >>> Yes, I believe they are duplicates (with smime-CA-directory predating >>> the gnutls thingy). > > LI> smime-CA-directory should be rewritten to use gnutls-trustfiles (if > LI> gnutls-trustfiles exists). The minor complication is that the former is > LI> a directory and the latter is a list of files, so it wouldn't be exactly > LI> backwards compatible... > > We can make `gnutls-trustfiles' support directories? On the other hand, this is the only place smime-CA-directory is used: (defun smime-verify-region (b e) "Verify S/MIME message in region between B and E. Returns non-nil on success. Any details (stdout and stderr) are left in the buffer specified by `smime-details-buffer'." (smime-new-details-buffer) (let ((CAs (append (if smime-CA-file (list "-CAfile" (expand-file-name smime-CA-file))) (if smime-CA-directory (list "-CApath" (expand-file-name smime-CA-directory)))))) And: -CAfile file a file containing trusted CA certificates, only used with -verify. -CApath dir a directory containing trusted CA certificates, only used with -verify. This directory must be a standard certificate directory: that is a hash of each subject name (using x509 -hash) should be linked to each certificate. Is a list of CA files, and can be in different directories, so there's, like, no way to used them interchangeably. So... I dunno. Somebody could just rewrite that function to use all the files from (gnutls-trustfiles) and see if one of them are OK. I never use smime, though, so I'm not that person. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no