all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: url library and GnuTLS, and Emacs-issued certificates (was: expand tls to elpa.gnu.org)
Date: Mon, 21 Mar 2011 17:33:33 -0500	[thread overview]
Message-ID: <878vw8hznm.fsf_-_@lifelogs.com> (raw)
In-Reply-To: 87hbawtbq7.fsf@stupidchicken.com

On Mon, 21 Mar 2011 17:17:20 -0400 Chong Yidong <cyd@stupidchicken.com> wrote: 

CY> Ted Zlatanov <tzz@lifelogs.com> writes:
aj> so far there is no tls/ssl support for elpa.gnu.org . In my opinion
aj> this is a real problem as there is no way to check the authenticity
aj> and integrity of downloaded packages. Is it possible to expand the
aj> certificate of gnu.org to elpa.gnu.org?
aj> Of course this makes the package-manager not checking integrity -
aj> but I think anyone interested in doing so can modify it without
aj> problems.
>> 
>> I can install a certificate but it has to be requested by the domain
>> owner so I'm not sure who to bug about it.

CY> Why not simply distribute the certificate file with Emacs?

I assumed we'd want https://elpa.gnu.org/packages/ to look reasonable in
a web browser.

In any case, I think it's a good idea to set up an Emacs Certificate
Authority (CA) so we can create certificates that Emacs will trust.  We
just need to ship the CA's certificate with Emacs then, not every
certificate it has signed.  We can then make a .p12 file that browser
users can import to trust Emacs-signed certificates.

It may make sense, though, to make this CA a facility for the whole GNU
project and then the Emacs CA can be an intermediate CA hanging off that
root CA.  That should be decided before we start pushing out
certificates, please, so we don't have to invalidate them later.

CY> Also, the Emacs package manager uses the url library for downloading via
CY> http.  How well does that library support https?  If I give
CY> `url-retrieve-synchronously' a https url, does it currently DTRT?

It's insecure currently and won't work on all platforms.  It uses tls.el
(see `url-https-create-secure-wrapper') which in turn relies on the
gnutls-cli or openssl binaries to be installed and usable, calling
gnutls-cli by default with --insecure (though the user can manually
adjust that, see `tls-checktrust').  We need the GnuTLS support at the C
level to make the url library secure through gnutls.el.  

I need to look at Claudio Bley's patch that was posted on emacs-devel 2
days ago and figure out what's wrong with hostname verification against
the certificate.  Once that's done we can promote gnutls.el+gnutls.c to
"need testing" and make them the default for the url library, Gnus, etc.

If anyone wants to help with any part of this process, please let me
know.  I'm slow, especially at the C level, so Claudio's help was very
welcome.

Thanks
Ted




  reply	other threads:[~2011-03-21 22:33 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19 16:21 expand tls to elpa.gnu.org axel.junker
2011-03-21 18:28 ` Ted Zlatanov
2011-03-21 21:17   ` Chong Yidong
2011-03-21 22:33     ` Ted Zlatanov [this message]
2011-03-23 15:30       ` url library and GnuTLS, and Emacs-issued certificates Ted Zlatanov
2011-03-23 18:31         ` Chong Yidong
2011-03-23 18:47           ` Ted Zlatanov
2011-03-23 19:20           ` Lars Magne Ingebrigtsen
2011-03-23 21:51             ` Chong Yidong
2011-03-24  4:55               ` Lars Magne Ingebrigtsen
2011-03-24 18:42                 ` Chong Yidong
2011-03-24 19:45                   ` Lars Magne Ingebrigtsen
2011-03-24 19:23             ` Chong Yidong
2011-03-24 19:33               ` Ted Zlatanov
2011-03-24 19:37               ` Lars Magne Ingebrigtsen
2011-03-26 23:32                 ` Chong Yidong
2011-03-26 23:39                   ` Lars Magne Ingebrigtsen
2011-03-27  1:23                     ` Chong Yidong
2011-03-27 10:31                       ` Lars Magne Ingebrigtsen
2011-03-27  0:20                   ` Lars Magne Ingebrigtsen
2011-03-27  1:30                     ` Chong Yidong
2011-03-27 10:36                       ` Lars Magne Ingebrigtsen
2011-03-27 17:42                         ` Chong Yidong
2011-03-28  0:34                           ` Chong Yidong
2011-03-29 20:54                             ` Lars Magne Ingebrigtsen
2011-03-30  2:20                               ` Chong Yidong
2011-03-26 12:07           ` Ted Zlatanov
2011-03-26 13:39             ` Reiner Steib
2011-03-26 14:09               ` Ted Zlatanov
2011-03-28  6:51                 ` Reiner Steib
2011-03-26 19:40             ` Tom Tromey
2011-03-26 23:36               ` Chong Yidong
2011-03-27  1:31                 ` Tom Tromey
2011-03-27  1:52                   ` Chong Yidong
2011-03-28 15:10             ` Ted Zlatanov

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=878vw8hznm.fsf_-_@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@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.