all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: 20960@debbugs.gnu.org
Subject: bug#20960: handling /etc/ssl/certs/ca-bundle.crt by default in emacs
Date: Thu, 26 Jan 2017 20:24:16 +0100	[thread overview]
Message-ID: <87efzpr5en.fsf@gnus.org> (raw)
In-Reply-To: <87oada1bbz.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 28 Dec 2015 17:02:08 -0500")

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Sat, 26 Dec 2015 21:57:24 +0100 Lars Ingebrigtsen <larsi@gnus.org> wrote: 
>
> LI> Stefan Monnier <monnier@iro.umontreal.ca> 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





  parent reply	other threads:[~2017-01-26 19:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02  9:57 bug#20960: handling /etc/ssl/certs/ca-bundle.crt by default in emacs Petr Hracek
2015-07-02 14:55 ` Eli Zaretskii
2015-07-02 15:38   ` Glenn Morris
2015-07-02 16:12     ` Eli Zaretskii
2015-07-02 22:18       ` Glenn Morris
2015-07-02 16:25     ` Stefan Monnier
2015-12-26 20:57       ` Lars Ingebrigtsen
2015-12-28 22:02         ` Ted Zlatanov
2015-12-28 22:30           ` Lars Ingebrigtsen
2015-12-30 14:52             ` Ted Zlatanov
2015-12-31 17:11               ` Lars Magne Ingebrigtsen
2017-01-26 19:24           ` Lars Ingebrigtsen [this message]
2017-01-31 14:38             ` Ted Zlatanov
2017-01-31 16:27               ` Lars Ingebrigtsen
2017-01-31 18:45                 ` Ted Zlatanov
2022-04-13  0:30 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efzpr5en.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=20960@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.