[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

need help with certificate bundles for ALL the platforms Emacs supports

From: Ted Zlatanov
Subject: need help with certificate bundles for ALL the platforms Emacs supports (was: GnuTLS invasion of Emacs published))
Date: Thu, 09 Feb 2012 09:16:16 -0500
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

On Fri, 03 Feb 2012 11:51:01 -0500 Ted Zlatanov <address@hidden> wrote: 

>>> There is one annoying detail with the cert bundle on W32.  It
>>> defaults to /etc/ssl/certs/ca-certificates.crt which is not valid on
>>> W32 and on many other platforms.

TZ> I mentioned this because it's the only important GnuTLS-related
TZ> configuration bit on all platforms.  It should be in the manual, I
TZ> think, but consider that I proposed a while back that Emacs should ship
TZ> with its own version of the Mozilla cert bundle, so that this works on
TZ> all platforms, but that was not OK with the maintainers.  

After discussing this with Stefan Monnier, I've decided to proceed as

New variable `gnutls-trustfiles' will be a list of trustfiles for your
platform, filtered by file existence.  It can take functions in the
list, and the functions can return a list of files or a single file.
When the list is empty, you'll get a message to look in the GNU ELPA for

A new GNU ELPA package "cert-bundle-mozilla" will provide a fallback
from Mozilla's certificate bundle.  It will be versioned same as that
bundle and updated periodically.  When you install that package, it will
add a function to `gnutls-trustfiles' to load the package's cert bundle

I need a list of possible cert bundle locations on all the platforms
Emacs supports, or methods to retrieve them.  Please send to me directly
or follow up here.  The assembled list will help me greatly.

I'll start with the easiest ones (please correct me if any are wrong,
based on http://mercurial.selenic.com/wiki/CACertificates):

Debian, Ubuntu, Gentoo and Arch Linux: /etc/ssl/certs/ca-certificates.crt 
(maintained by `update-ca-certificates').

Fedora and RHEL: /etc/pki/tls/certs/ca-bundle.crt

Suse: /etc/ssl/ca-bundle.pem

Mac OS X has the certificate list in the system keychain.  If we had
keychain access functions in Emacs, or a shell call to dump the
contents, I could export it.  Any help is welcome.

W32 doesn't seem to have a system cert bundle and getting it from any
specific browser is unreliable, but any suggestions are welcome.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]