Hi,

ckeader via Mutt-dev wrote:
> 
> Looking for certificate files on my system, I came across
> contrib/ca-bundle.crt under a mutt git clone, which includes some 50 now
> outdated certificates. The file is dated 2019, but potentially much
> older, as per the "Netscape Communicator 4.72" reference at the top. If
> anyone is indeed using it (mutt plus pre-gpgme SMIME, perhaps), mutt
> should provide an updated copy.
> 
> An up to date bundle can be created from the certdata.txt file in
> Mozilla's nss distribution, using the extraction script provided by
> Linux distributions' ca-certificates source packages. I've done this
> with EL and Trixie.

I think it would be better to just drop this file.  Mutt
really has no business maintaining its own ca-bundle.crt
anymore.

It was added in January 2002, when that was at least less
clearly the case.  That it has seen no updates since says
all that needs to be said about its usefulness, I'd say. :)

Debian and Fedora both drop this file and update the configs
and/or docs (in different ways) to point at the system CA
certificates.

Obviously, it still makes sense to allow the user to
override the location, but I think by default it ought to
point to the system CA certificates.  I don't know what the
right way to make those changes may be, as I haven't given
it a lot of thought.  I don't use S/MIME, so I have very
little need for it myself.  (Otherwise, I'd make this reply
a patch.)

Debian has a patch¹ to update contrib/smime.rc and use a for
loop to set `smime_ca_location` to the first file among:

    $HOME/.smime/ca-certificates.crt
    $HOME/.smime/ca-bundle.crt
    /etc/ssl/certs/ca-certificates.crt

And they remove ca-bundle.crt from the installed samples
directory².

Similarly, Fedora has a patch which removes ca-bundle.crt
from contrib/Makefile.am updates doc/smime-notes.txt³.  It
looks like they don't do anything to update the example
config, leaving that up to users to set appropriately.  By
default, it's not set and without the stale ca-bundle.crt in
place, using it shouldn't be an easy mistake to make. ;)

The ideal outcome is likely to remove the stale
ca-bundle.crt and update the documentation and sample
smime.rc to either use a common path for this (and leave
distributions to patch it if they differ) or leave it empty
and require users to set it directly.

Users could then choose to use the distribution default
(from the system-wide path or by copying it to their home
dir -- if they expect to add/remove entries themselves) or
download their own from Mozilla or elsewhere.

¹ 
https://salsa.debian.org/mutt-team/mutt/-/blob/6fa7326/debian/patches/misc/smime.rc.patch
² https://salsa.debian.org/mutt-team/mutt/-/blob/6fa7326/debian/rules#L45
³ 
https://src.fedoraproject.org/rpms/mutt/blob/be1b0f5/f/mutt-1.8.0-cabundle.patch

-- 
Todd

Attachment: signature.asc
Description: PGP signature

Reply via email to